From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: zsh-workers@math.gatech.edu (Zsh hacking and development)
Subject: 1foo=something bugfix
Date: Wed, 11 Sep 1996 02:45:22 +0200 (MET DST) [thread overview]
Message-ID: <199609110045.CAA02766@hzoli.ppp.cs.elte.hu> (raw)
Peter reported that
1foo=... is the same as
1=...
The patch below hopefully cures this.
Zoltan
*** Src/lex.c.orig Wed Sep 11 00:51:32 1996
--- Src/lex.c Wed Sep 11 02:37:13 1996
***************
*** 859,873 ****
}
} else if (!sub && peek != ENVSTRING &&
incmdpos && !bct && !brct) {
! e = hgetc();
! if (e == '(' && incmdpos) {
! *bptr = '\0';
! return ENVARRAY;
! }
! hungetc(e);
! lexstop = 0;
! peek = ENVSTRING;
! intpos = 2;
} else
c = Equals;
break;
--- 859,881 ----
}
} 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';
! return ENVARRAY;
! }
! hungetc(e);
! lexstop = 0;
! peek = ENVSTRING;
! intpos = 2;
! } else
! c = Equals;
} else
c = Equals;
break;
reply other threads:[~1996-09-11 4:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=199609110045.CAA02766@hzoli.ppp.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--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).