From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id TAA19861 for ; Mon, 5 Jun 1995 19:40:16 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA01820 (5.65c/Gatech-10.0-IDA for ); Mon, 5 Jun 1995 05:39:58 -0400 Received: by math (5.x/SMI-SVR4) id AA08980; Mon, 5 Jun 1995 05:38:08 -0400 Resent-Date: Mon, 05 Jun 95 10:37:34 +0100 Old-Return-Path: Message-Id: <21569.9506050937@pyro.swan.ac.uk> To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: Small bug in zsh 2.6beta9 In-Reply-To: "heiko@pool.informatik.rwth-aachen.de"'s message of "Mon, 05 Jun 95 09:52:05 +0200." <9506050752.AA12915@messua> Date: Mon, 05 Jun 95 10:37:34 +0100 From: P.Stephenson@swansea.ac.uk X-Mts: smtp Resent-Message-Id: <"ggIbQ3.0.EC2._1jql"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/73 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu heiko@pool.informatik.rwth-aachen.de wrote: > In the file exec.c, line 493, the line > > if (ornext ^ ret) { > > should read > > if (ornext ^ (ret!=0)) { You're quite right --- this is my fault again. Here's an actual patch for that. *** Src/exec.c.ret Mon Jun 5 10:16:14 1995 --- Src/exec.c Mon Jun 5 10:34:30 1995 *************** *** 506,512 **** */ ornext = (slist->type == ORNEXT); ! if (ornext ^ ret) { /* * If either (1) it's an or, and the return code * was zero, or (2) it's an and, and the return --- 506,512 ---- */ ornext = (slist->type == ORNEXT); ! if (ornext ^ (ret != 0)) { /* * If either (1) it's an or, and the return code * was zero, or (2) it's an and, and the return -- Peter Stephenson Tel: +44 1792 205678 extn. 4461 WWW: http://python.swan.ac.uk/~pypeters/ Fax: +44 1792 295324 Department of Physics, University of Wales, Swansea, Singleton Park, Swansea, SA2 8PP, U.K.