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

> Use set -o errexit at the start of your script. [...]

A couple of days ago this link was posted to hn http://mywiki.wooledge.org/BashFAQ/105

It showed me once again how little bash I know even after all those years. I checked the examples to see if only set -e is dangerous or also set -o like the author suggested and sure enough it's just as bad es set -e. You just got to thoroughly check your bash scripts and do proper error handling.



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

Search: