From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: Colon-array variables can crash "sh" emulation
Date: Fri, 21 Apr 2017 18:11:38 +0100 [thread overview]
Message-ID: <20170421181138.54d712e5@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <170420075621.ZM2340@torch.brasslantern.com>
On Thu, 20 Apr 2017 07:56:20 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Apr 20, 11:21am, Peter Stephenson wrote:
> } The fly in the ointment here is that colonarrsetfn() refuses to fix up
> } the environment unless the ename element is set. It's not clear to me
> } why since I don't think ename can be unset for special tied variables
> } which are the only use of colonarrsetfn().
>
> This is probably not be true any longer, but at one time I think "ename"
> was doing double duty as a flag that the parameter was in fact exported.
Yes, this has changed significantly since the early days.
The only remaining use of ename I could see that made me scratch my head
was the test just before the export_param() call at the end of
assignstrvalue(), but I think the worst impact is a superfluous call to
addenv().
pws
prev parent reply other threads:[~2017-04-21 17:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170415023123epcas4p2ee028a819ead555a6d135bc65b2b3e9f@epcas4p2.samsung.com>
2017-04-15 2:31 ` Bart Schaefer
2017-04-20 10:21 ` Peter Stephenson
2017-04-20 14:56 ` Bart Schaefer
2017-04-21 17:11 ` Peter Stephenson [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=20170421181138.54d712e5@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/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).