zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Colon-array variables can crash "sh" emulation
Date: Thu, 20 Apr 2017 07:56:20 -0700	[thread overview]
Message-ID: <170420075621.ZM2340@torch.brasslantern.com> (raw)
In-Reply-To: <20170420112131.4ddbace7@pwslap01u.europe.root.pri>

On Apr 20, 11:21am, Peter Stephenson wrote:
}
} The only robust solution looks like being not let PATH's ename element
} point at path.  Otherwise the code following ename has to jump through
} hoops to see if the parameters are "really" linked, which is far too
} late.

Yes.

} 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.
My understanding was that it's called "ename" because it's the name in
the environment to which the parameter refers.  This is probably only
the case for the array version of the parameter and not for the scalar,
or something like that.


  reply	other threads:[~2017-04-20 14:55 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 [this message]
2017-04-21 17:11       ` Peter Stephenson

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=170420075621.ZM2340@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).