bug-bash
[Top][All Lists]
Advanced

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

Re: Unable to dereference function-local nameref to global variable of s


From: Chet Ramey
Subject: Re: Unable to dereference function-local nameref to global variable of same name
Date: Fri, 12 Aug 2016 09:34:40 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 8/10/16 12:06 PM, Andreas Kusalananda Kähäri wrote:

> Bash Version: 4.3
> Patch Level: 46
> Release Status: release
> 
> Description:
>     When declaring a variable in a function as a nameref, it can not
>     be dereferenced if the variable it's a nameref to happen to have
>     the same name as the nameref itself.  This imposes unnecessary
>     restrictions on the caller.

There was extensive discussion about namerefs on bug-bash earlier this
year.  I have a reasonable suggestion about how to change this behavior,
and I will be looking at it after bash-4.4 is released.

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



reply via email to

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