[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declare -gA <Name> does not create globally accessible associative a
From: |
Chet Ramey |
Subject: |
Re: declare -gA <Name> does not create globally accessible associative array |
Date: |
Sun, 19 Oct 2014 18:06:17 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
On 10/19/14 6:59 PM, Florian Mayer wrote:
> Bash Version: 4.2
> Patch Level: 25
> Release Status: release
>
> Description:
> The problem is, that declare -gA <NAME> does not create
> a globally accessible object if run from a sourced file inside
> a function.
> (see http://lists.gnu.org/archive/html/bug-bash/2014-05/msg00039.html)
This was fixed in bash-4.3. According to CHANGES, it first appeared in
bash-4.3-alpha.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/