Hacker News new | past | comments | ask | show | jobs | submit login

If you're using:

    set -o errexit # or set -e if you prefer
Then you probably also want:

    set -o pipefail
Otherwise, it only checks that the last command succeeds, so something like:

    ls *.ssjkfle | wc -l
will actually continue as success despite the "ls" failing.



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

Search: