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

Exactly how does that improve the error handling in your shell script beyond "ignore all errors", as discussed by the OP?

I am genuinely curious how you would write a command with a pipe in plain POSIX /bin/sh such that a non-zero exit status from the program that writes into the pipe is detected (as can be done in bash with "set -o pipefail" or "$PIPESTATUS").



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

Search: