From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25209 invoked from network); 2 May 1998 22:35:16 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 2 May 1998 22:35:16 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id SAA02113; Sat, 2 May 1998 18:32:12 -0400 (EDT) Resent-Date: Sat, 2 May 1998 18:31:39 -0400 (EDT) Date: Sat, 2 May 1998 16:24:40 -0600 From: talley@boulder.Central.Sun.COM (Steve Talley) Message-Id: <199805022224.QAA03113@ipecac.Central.Sun.COM> To: zsh-users@math.gatech.edu Subject: exit value of intermediate program in pipe X-Sun-Charset: US-ASCII Resent-Message-ID: <"1r5S32.0.OW.AxvIr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1496 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 a function foo: foo () { /bin/blah | grep -v "foo" } I would like this function to exit with the exit value from the /bin/blah process, but it exits with the exit value from grep instead. Is there any way to do this? Steve