From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: acs@world.std.com
Cc: zefram@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu
Subject: Re: zsh funcs
Date: Mon, 14 Oct 1996 00:09:42 +0200 (MET DST) [thread overview]
Message-ID: <199610132209.AAA01406@hzoli.ppp.cs.elte.hu> (raw)
In-Reply-To: <199610111549.LAA14209@spacely.icd.teradyne.com> from Vinnie Shelton at "Oct 11, 96 11:49:34 am"
> zefram@dcs.warwick.ac.uk said:
> > This should be
>
> > eval $1=\$PWD : ~$1
>
> > -zefram
>
> Thanks, but why is this necessary? Was the change in behavior intentional?
I would not say that it was intentional. I always thought that eval is
necessary for that. In addvars() there is an explicite singsub() call to
substitute the left-hand-side of an assignment which is now only used to
substitute the index of the assignment. The change was that the lexer
gives the assignment token only if a word of the form number=value or
name=value or name[index]=value appears in command position where name has
only alphanumeric characters and underscores and starts with a letter or an
underscore. This fixes problems with 1foo=bar assignments.
Zoltan
prev parent reply other threads:[~1996-10-13 22:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-11 15:03 Vinnie Shelton
1996-10-11 15:37 ` Zefram
1996-10-11 15:49 ` Vinnie Shelton
1996-10-13 22:09 ` 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=199610132209.AAA01406@hzoli.ppp.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=acs@world.std.com \
--cc=zefram@dcs.warwick.ac.uk \
--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).