help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERR trap, pipeline, and errtrace


From: Boris Kolpackov
Subject: Re: ERR trap, pipeline, and errtrace
Date: Fri, 8 Jan 2021 10:07:09 +0200
User-agent: Mutt/1.5.24 (2015-08-30)

Chet Ramey <chet.ramey@case.edu> writes:

> Yes, it's expected.

Thanks for confirming.


> The language is fine; it describes the default behavior of the ERR trap. In
> the trap command description, the "any command in a pipeline" refers to the
> function call, and indeed, the trap does not get run even though the exit
> from the trap handler causes the pipeline element to return a non-zero
> status.

I see what you are saying though that last bit is not quite true if
pipefail is set. But I think I agree it doesn't make sense to cross-
mention these nuances in multiple places.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]