Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] make the doc of pipefail clear
- X-seq: zsh-workers 34867
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] make the doc of pipefail clear
- Date: Fri, 10 Apr 2015 09:16:28 +0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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 <hanpt@xxxxxxxxxxxxxxxxxx>
---
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author