bug-bash
[Top][All Lists]
Advanced

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

Re: nameref subscript assignment with unset target var


From: Chet Ramey
Subject: Re: nameref subscript assignment with unset target var
Date: Mon, 23 May 2016 13:48:15 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

On 5/22/16 6:43 PM, Grisha Levit wrote:
> This multiple-vars-at-same-scope thing happens also happens in the case
> that the nameref points to a variable at a higher scope of the same name as
> the nameref. I suspect this is related to the nameref resolution issue here
> http://lists.gnu.org/archive/html/bug-bash/2016-05/msg00115.html

It doesn't happen any more; the attempt to create the second array `a' is
trapped and rejected.  I'd like to catch the error earlier, though, kind
of like ksh93 does.

-- 
``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]