On 1/10/23 9:36 PM, Quinn Grier wrote:
In the documentation for set -e, the Bash manual says that errexit is
suspended in all but the last command of a pipeline:

       The shell does not exit if the command that fails is part of
       [...] any command in a pipeline but the last

That's not what that says. It doesn't say that the command doesn't fail, or
that `set -e' isn't active; it says how it affects the exit status of the
pipeline. This means that a non-terminal pipeline element failing doesn't
determine whether or not the shell exits, since it doesn't affect the
pipeline's exit status.

I'm not sure why you included the `part of' in your quote, since it clearly
applies to the text following it: "part of the command list immediately
following as while or until keyword, part of the test following ..."

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to