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

2013-08-24 Thread Chet Ramey
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 - --

'declare +a -g' destroys local arrays

2013-08-22 Thread Arfrever Frehtes Taifersar Arahesis
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 arra