Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Common shell script mistakes (2008). Parent comment
AFAIK in POSIX /bin/sh it's not possible to detect if a process that writes into a pipe exits with an error status.
bash has "set -o pipefail" and "$PIPESTATUS" for that.
There are no comments on this comment yet.
AFAIK in POSIX /bin/sh it's not possible to detect if a process that writes into a pipe exits with an error status.
bash has "set -o pipefail" and "$PIPESTATUS" for that.