Re: read builtin and readonly variables

2011-01-03 Thread Dennis Williamson
On Tue, Jan 4, 2011 at 12:41 AM, Jan Schampera wrote: > Hello list, > > > the read builtin command, when trying to assign to a readonly variable after > reading the data, spits an error message. This is fine. > > But the return status is 0. It "always" (down to 2.04 was tested) has been > like tha

read builtin and readonly variables

2011-01-03 Thread Jan Schampera
Hello list, the read builtin command, when trying to assign to a readonly variable after reading the data, spits an error message. This is fine. But the return status is 0. It "always" (down to 2.04 was tested) has been like that, and it's like that in upcoming 4.2. For me, this doesn't ma

Re: List of keys of an associative array

2011-01-03 Thread Greg Wooledge
On Fri, Dec 31, 2010 at 10:56:35AM +0100, dnade@orange-ftgroup.com wrote: > Ha. Indeed, if i use declare ???A, it works. > > But why is bash letting me use foo[bar]=something in the first place, if I > don???t declare foo as an associative array ? > Maybe the bug???s here. As Pierre said, fo