4 ms·
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
by the_why_of_y 11y ago
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").