From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29220 invoked by alias); 10 Apr 2015 01:41:43 -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: 34867 Received: (qmail 22224 invoked from network); 10 Apr 2015 01:41:41 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Fri, 10 Apr 2015 09:16:28 +0800 From: Han Pingtian To: zsh-workers@zsh.org Subject: [PATCH] make the doc of pipefail clear Message-ID: <20150410011628.GL2805@localhost.localdomain> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15041001-0029-0000-0000-00000903EBEA Hi, I think we can make the doc of pipefail more clear with this patch: If set, pipe will return non-zero if any element return non-zero. Otherwise, pipe will return zero. Signed-off-by: Han Pingtian --- Doc/Zsh/options.yo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 19920ca..cdfe46e 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -1743,8 +1743,8 @@ item(tt(PIPE_FAIL))( By default, when a pipeline exits the exit status recorded by the shell and returned by the shell variable tt($?) reflects that of the rightmost element of a pipeline. If this option is set, the exit status -instead reflects the status of the rightmost element of the pipeline -that was non-zero, or zero if all elements exited with zero status. +is non-zero if there was one element in the pipeline who exited with +non-zero status, or zero if all elements exited with zero status. ) pindex(SOURCE_TRACE) pindex(NO_SOURCE_TRACE) -- 1.9.3