From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29163 invoked by alias); 24 Dec 2011 18:46:44 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30058 Received: (qmail 25616 invoked from network); 24 Dec 2011 18:46:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <111224104628.ZM28084@torch.brasslantern.com> Date: Sat, 24 Dec 2011 10:46:28 -0800 In-reply-to: <111224102333.ZM18731@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: $pipestatus broken?" (Dec 24, 10:23am) References: <87borgzkap.fsf@ft.bewatermyfriend.org> <877h24zj69.fsf@ft.bewatermyfriend.org> <111210065833.ZM6198@torch.brasslantern.com> <877h1nwojx.fsf@ft.bewatermyfriend.org> <111223133128.ZM17298@torch.brasslantern.com> <87hb0rueem.fsf@ft.bewatermyfriend.org> <111224013252.ZM22819@torch.brasslantern.com> <878vm2uw6i.fsf@ft.bewatermyfriend.org> <111224102333.ZM18731@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: $pipestatus broken? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 24, 10:23am, Bart Schaefer wrote: } } if ((jn->stat & STAT_CURSH) && i < MAX_PIPESTATS) } pipestats[i++] = lastval; } } In this case I'm *guessing* lastval = 1 because we're catching the } signal after thisjob = pj but before the actual wait for jobtab[1], } so lastval reflects that "read a" has failed. I can confirm by replacing "read a" with "(return 3)" in the test that we are in fact picking up lastval from the condition rather than from the loop exit, but in the absence of my patch the above snippet is not the place where this happens. That's all the time I have for this until after the 25th, I'm afraid. Happy year-end-holdiday-stuff to you all.