From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5485 invoked from network); 29 Jan 1997 00:42:18 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 29 Jan 1997 00:42:18 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id TAA04141; Tue, 28 Jan 1997 19:21:14 -0500 (EST) Resent-Date: Tue, 28 Jan 1997 19:21:14 -0500 (EST) From: Zoltan Hidvegi Message-Id: <199701282328.AAA02059@hzoli.ppp.cs.elte.hu> Subject: Re: \} parse error in 3.0.3-test4 To: roderick@gate.net (Roderick Schertler) Date: Wed, 29 Jan 1997 00:28:41 +0100 (MET) Cc: zsh-workers@math.gatech.edu In-Reply-To: <18699.854481789@eeyore.ibcinc.com> from Roderick Schertler at "Jan 28, 97 03:03:09 pm" X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"RBnAe2.0.Y01.vVfxo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2838 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > Here's a parse error in 3.0.3-test4 which wasn't in 3.0.2: > > $ zsh-3.0.2 -fxc 'eval last=\$\{$#\}' foo bar > + eval last=${1} > + last=bar > > $ zsh-3.0.3-test4 -fxc 'eval last=\$\{$#\}' foo bar > + eval last=${1 > foo: closing brace expected Fix is included below. This should be applied to zsh-3.0.3-test4 and zsh-3.1.1. Zoltan *** Src/lex.c 1997/01/05 21:07:31 3.1.1.4 --- Src/lex.c 1997/01/28 23:27:21 *************** *** 986,992 **** cmdpop(); zerr("closing brace expected", NULL, 0); } else if (unset(IGNOREBRACES) && !sub && len > 1 && ! peek == STRING && bptr[-1] == '}') { /* hack to get {foo} command syntax work */ bptr--; len--; --- 986,992 ---- cmdpop(); zerr("closing brace expected", NULL, 0); } else if (unset(IGNOREBRACES) && !sub && len > 1 && ! peek == STRING && bptr[-1] == '}' && bptr[-2] != Bnull) { /* hack to get {foo} command syntax work */ bptr--; len--;