Zsh Mailing List Archive
Messages sorted by:
Re: Colon-array variables can crash "sh" emulation
- X-seq: zsh-workers 40991
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Colon-array variables can crash "sh" emulation
- Date: Thu, 20 Apr 2017 07:56:20 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=zbP/Ki2c5HMgOTC9h24MLT49EAEuQ+WMUYe+jKrqtYs=; b=u30qxqIP+ZY/OzzUeRCCIScGZzgH0yRPIqcnOZCIRJuDLQ+ah1L0cS+jcNbwRdepQu dZsvx9ztLHB0ENVimUSnha/Xa+jLgcCHEUlqhpQDESdAIEfNKXJOjIYnv54+ehUjIgxR cxD0lKgRW9mbKluBaaNDlVRdNc70PhwZaXCndsU84Yb/EkKO3t4f4yQQVSkSL6s/pBPB MqkAJxPCCiE8pKIV0d1pTYR3FIgE4LqC1rnD6kw5duuSM78AE/2FAjAQLd9T8e0NcTpV a+psNCQCv6IMNUKswDuA1Zx098KhcO5cTtNdx07nnk0fjxuTHJrx852Op6A3Cl6yo8uv aXTw==
- In-reply-to: <email@example.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20170415023123epcas4p2ee028a819ead555a6d135bc65b2b3e9f@epcas4p2.samsung.com> <170414193104.ZM16289@torch.brasslantern.com> <firstname.lastname@example.org>
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
} 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.
Messages sorted by: