Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vulcan01
on March 22, 2022
|
parent
|
context
|
favorite
| on:
Please stop writing shell scripts
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:
`set -o pipefail` tells Bash to exit the program on such a failure.