Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] make the doc of pipefail clear
On Thu, Apr 09, 2015 at 06:53:38PM -0700, Bart Schaefer wrote:
> On Apr 10, 9:16am, Han Pingtian wrote:
> }
> } I think we can make the doc of pipefail more clear with this patch:
>
> It might be more clear, but it's less correct.
>
> Given
>
> setopt pipefail
> ( exit 1 ) | ( exit 2 ) | ( exit 3 ) | ( exit 4 ) | ( exit 0 )
>
> the original doc fully describes that the exit status of the entire
> pipeline is 4, whereas your change only states that it is "non-zero".
>
> That part about "the rightmost" that you removed, is important.
Thanks. Now I understand the original document ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author