From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4705 invoked from network); 3 Nov 2003 02:10:56 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 3 Nov 2003 02:10:56 -0000 Received: (qmail 3061 invoked by alias); 3 Nov 2003 02:10:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19214 Received: (qmail 8250 invoked from network); 3 Nov 2003 01:55:40 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 3 Nov 2003 01:55:40 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.3.58.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 3 Nov 2003 1:55:40 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id hA31tcM00608 for zsh-workers@sunsite.dk; Sun, 2 Nov 2003 17:55:38 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1031103015538.ZM607@candle.brasslantern.com> Date: Mon, 3 Nov 2003 01:55:38 +0000 In-Reply-To: <1233.1067772228@athlon> Comments: In reply to Oliver Kiddle "$pipestatus broken" (Nov 2, 12:23pm) References: <1233.1067772228@athlon> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh workers Subject: Re: $pipestatus broken MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 2, 12:23pm, Oliver Kiddle wrote: } } The pipestatus array seems to be broken: } } % ls|cat -|cat - >/dev/null } % echo $pipestatus } 0 It works with "zsh -f" in the latest dev version: zagzig% true | false |true zagzig% echo $pipestatus 0 1 0 It fails if there's a precmd function defined: zagzig% precmd() { echo PRECMD: $pipestatus } PRECMD: 0 zagzig% echo $pipestatus 0 PRECMD: 0 zagzig% false | echo $pipestatus 0 PRECMD: 1 0 zagzig% echo $pipestatus 0 PRECMD: 0 I think there's code to save and restore `lastval' around precmd(), but it doesn't save and restore the entire `pipestats' array.