Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] make the doc of pipefail clear
- X-seq: zsh-workers 34868
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] make the doc of pipefail clear
- Date: Thu, 9 Apr 2015 18:53:38 -0700
- In-reply-to: <20150410011628.GL2805@localhost.localdomain>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150410011628.GL2805@localhost.localdomain>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author