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

set -e and set -u both come with their own pitfalls: https://mywiki.wooledge.org/BashFAQ/105 and https://mywiki.wooledge.org/BashFAQ/112

I generally use them and think that overall, they have more benefits than drawbacks, but the odd time where I run into one of the pitfalls, debugging usually takes a while.

ShellCheck already does a pretty good job of pointing out incorrect variable names, too.



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

Search: