From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9387 invoked by alias); 10 Apr 2015 08:20:10 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34870 Received: (qmail 27594 invoked from network); 10 Apr 2015 08:20:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06 autolearn=no version=3.3.2 Date: Fri, 10 Apr 2015 11:14:22 +0800 From: Han Pingtian To: zsh-workers@zsh.org Subject: Re: [PATCH] make the doc of pipefail clear Message-ID: <20150410031422.GA2759@localhost.localdomain> Mail-Followup-To: zsh-workers@zsh.org References: <20150410011628.GL2805@localhost.localdomain> <150409185338.ZM25482@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <150409185338.ZM25482@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15041008-0013-0000-0000-000000599488 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 ...