From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: roderick@gate.net (Roderick Schertler)
Cc: zsh-workers@math.gatech.edu
Subject: Re: \} parse error in 3.0.3-test4
Date: Wed, 29 Jan 1997 00:28:41 +0100 (MET) [thread overview]
Message-ID: <199701282328.AAA02059@hzoli.ppp.cs.elte.hu> (raw)
In-Reply-To: <18699.854481789@eeyore.ibcinc.com> from Roderick Schertler at "Jan 28, 97 03:03:09 pm"
> 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--;
prev parent reply other threads:[~1997-01-29 0:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-28 20:03 Roderick Schertler
1997-01-28 23:28 ` Zoltan Hidvegi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199701282328.AAA02059@hzoli.ppp.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=roderick@gate.net \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).