Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
error value from pipe
- X-seq: zsh-users 1755
 
- From: "Stephen Ng" <stephenng@xxxxxxxxxxxx>
 
- To: zsh-users@xxxxxxxxxxxxxxx
 
- Subject: error value from pipe
 
- Date: Tue, 25 Aug 1998 14:23:15 -0400
 
- In-reply-to: <980825104831.ZM15886@xxxxxxxxxxxxxxxxxxxxxxx>
 
- Priority: normal
 
- References: <vbd89pnkp3.fsf@xxxxxxxxxxxxxxx>
 
- Reply-to: stephenng@xxxxxxxxxxxx
 
I have an enhancement request for zsh:
When piping a series of commands, e.g.
cat X | sort 
zsh apparently only lets you access the error status of the last 
command in the pipe; I need to know if any command in the pipe 
has failed.  
(Bash will let you access the error codes for any command in the 
pipe as an array, which is overkill for me--I just need to know if any 
of the commands returned a non-zero value.)
Stephen Ng
Messages sorted by:
Reverse Date,
Date,
Thread,
Author