[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nameref in temp environment

From: Chet Ramey
Subject: Re: nameref in temp environment
Date: Mon, 16 May 2016 15:35:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 5/12/16 8:58 PM, Grisha Levit wrote:
> The 20160506 snapshot changes assign_in_env to do some nameref-related
> checks on the variable name, but these don’t really seem to make sense
> since assignments in the temporary env just create regular variables and
> don’t follow the nameref chain otherwise.
> i.e. bash doesn’t actually care that |ref| is a nameref at the outer scope
> for the purposes of creating the temp env:

It should, for compatibility; ksh93 follows the nameref at least for
temporary assignments preceding builtins.  I'll look further when I have
a block of time.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]