CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/07/07 04:33:58
Modified files:
regress/bin/ksh: obsd-regress.t
bin/ksh : jobs.c ksh.1 misc.c sh.h
Log message:
Add support for set -o pipefail
With the pipefail option set, the exit status of a pipeline is 0 if all
commands succeed, or the return status of the rightmost command that
fails. This can help stronger error checking, but is not a silver
bullet. For example, commands will exhibit a non-zero exit status if
they're killed by a SIGPIPE when writing to a pipe. Yet pipefail was
considered useful enough to be included in the next POSIX standard.
This implementation remembers the value of the pipefail option when
a pipeline is started, as described as option 1) in
https://www.austingroupbugs.net/view.php?id=789#c4102
Requested by ajacoutot@, ok millert@