Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Note that this same wiki has a good page on the numerous surprising behaviors of errexit: https://mywiki.wooledge.org/BashFAQ/105

My perception is that there is no consensus on whether or not to use it. I go back and forth, but I probably use it more often than not.



imho all the behaviors that post outlines as "confusing" are my desired behaviors most of the time. For me it's pretty clear-cut, error out by default and only continue when explicitly allowed with something like `|| true`.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: