[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unable to dereference function-local nameref to global variable of s
Re: Unable to dereference function-local nameref to global variable of same name
Thu, 11 Aug 2016 20:34:39 -0400
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
On 8/11/16 5:10 PM, Piotr Grzybowski wrote:
> I personally believe that we should make this change (of course not before
> 4.4 ;-)), and that it should follow the global nameref chain.
> The patch (not breaking the test suite) follows.
The problem with this fix, and part of what makes the situation complex, is
that bash uses dynamic variable scoping. This solution would work if bash
had static scoping.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/