From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: pws@ifh.de (Peter Stephenson)
Cc: zsh-workers@math.gatech.edu
Subject: Re: two new bugs
Date: Thu, 19 Sep 1996 00:12:22 +0200 (MET DST) [thread overview]
Message-ID: <199609182212.AAA00950@hzoli.ppp.cs.elte.hu> (raw)
In-Reply-To: <199609180927.LAA03839@hydra.ifh.de> from Peter Stephenson at "Sep 18, 96 11:27:42 am"
> Here are two recent bugs, both certainly since 3.0.0, the second very
> recent.
>
> 1)
>
> % foo[1]=bar
> zsh: command not found: foo[1]=bar
>
> (Did this come with Zoltan's patch to fix the bug that '1foo=bar'
> worked like '1=bar'? Unfortunately I've since deleted that.)
Yes, it was my patch :-(. Here is a fix for the fix. Note that 1[1]=foo
is not an assignment.
Zoltan
*** Src/lex.c 1996/09/14 03:55:08 2.45
--- Src/lex.c 1996/09/18 22:08:52
***************
*** 859,870 ****
}
} else if (!sub && peek != ENVSTRING &&
incmdpos && !bct && !brct) {
! e = 0;
! if (idigit(*tokstr))
! while (++e < len && idigit(tokstr[e]));
! else
! while (iident(tokstr[e]) && ++e < len);
! if (e == len) {
e = hgetc();
if (e == '(' && incmdpos) {
*bptr = '\0';
--- 859,875 ----
}
} else if (!sub && peek != ENVSTRING &&
incmdpos && !bct && !brct) {
! char *t = tokstr;
! if (idigit(*t))
! while (++t < bptr && idigit(*t));
! else {
! while (iident(*t) && ++t < bptr);
! if (t < bptr) {
! *bptr = '\0';
! skipparens(Inbrack, Outbrack, &t);
! }
! }
! if (t == bptr) {
e = hgetc();
if (e == '(' && incmdpos) {
*bptr = '\0';
prev parent reply other threads:[~1996-09-18 22:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-18 9:27 Peter Stephenson
1996-09-18 12:26 ` Peter Stephenson
1996-09-18 21:37 ` Zoltan Hidvegi
1996-09-19 7:52 ` Peter Stephenson
1996-09-18 22:12 ` 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=199609182212.AAA00950@hzoli.ppp.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=pws@ifh.de \
--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).