From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 995 invoked from network); 25 Aug 1998 18:34:52 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 25 Aug 1998 18:34:52 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id OAA19424; Tue, 25 Aug 1998 14:21:23 -0400 (EDT) Resent-Date: Tue, 25 Aug 1998 14:21:10 -0400 (EDT) Message-Id: <199808251823.OAA16128@chmls05.mediaone.net> From: "Stephen Ng" To: zsh-users@math.gatech.edu Date: Tue, 25 Aug 1998 14:23:15 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: error value from pipe Reply-to: stephenng@alum.mit.edu Priority: normal In-reply-to: <980825104831.ZM15886@candle.brasslantern.com> References: X-mailer: Pegasus Mail for Win32 (v3.01b) Resent-Message-ID: <"F4Q5m.0.xk4.L2mur"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1755 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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