bug-bash
[Top][All Lists]
Advanced

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

Re: 'declare +a -g' destroys local arrays


From: Chet Ramey
Subject: Re: 'declare +a -g' destroys local arrays
Date: Sat, 24 Aug 2013 19:28:34 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/22/13 4:52 AM, Arfrever Frehtes Taifersar Arahesis wrote:
> I use bash 4.2.45.
> 
> `man bash` says:
> "Using `+' instead of `-' turns off the attribute instead, with the 
> exceptions that +a may not be
> used to destroy an array variable and +r will not remove the readonly 
> attribute."
> 
> However 'declare +a -g' destroys local arrays, which do not shadow global 
> arrays:

Thanks for the report.  This has been fixed for bash-4.3, which is now in
beta.

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/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIZQZQACgkQu1hp8GTqdKvQ1QCgjn0mPzkpqPfkKHPzDwuCaTH6
wYkAniZqVQZO0hqOwC09YI5VbFhF7hRW
=TK+G
-----END PGP SIGNATURE-----



reply via email to

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