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

Say you have `command1 | command2` in your script, and command1 fails. Bash will just skip over the failure and continue.

`set -o pipefail` tells Bash to exit the program on such a failure.



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

Search: