help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] behavior of -o pipefail


From: Greg Wooledge
Subject: Re: [Help-bash] behavior of -o pipefail
Date: Mon, 29 Oct 2018 15:54:13 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Oct 29, 2018 at 08:49:32PM +0100, Christof Warlich wrote:
> With piplines being made up of such well-behaving filters, it would
> still be beneficial to see the first error instead of the last one. Can
> we agree with that?

If you care about that, just use the PIPESTATUS array variable instead of
pipefail.  Pipefail is only intended to report "something bad happened",
not to help you pinpoint exactly which bad thing happened to whom.  It's
a sledgehammer, not a sewing needle.



reply via email to

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