Re: Question if bug: declaration of an associative array within a function

2010-06-15 Thread Chet Ramey
On 6/15/10 5:22 PM, Greg Wooledge wrote: > `declare' has the side effect of making things local to a function, if > it is used within a function. There is currently no way to create a > global associative array while inside a function; you'd have to do it > outside the function. > > Chet has sai

Re: Question if bug: declaration of an associative array within a function

2010-06-15 Thread Greg Wooledge
On Tue, Jun 15, 2010 at 01:21:51PM +0200, Rainer Rehak wrote: > Hey there, > is it a bug, that the declaration of an associative array within a > function does not survive till after the function, with primitive > variables on the other hand that concept works well. `declare' has the side effect o

Re: Question if bug: declaration of an associative array within a function

2010-06-15 Thread Chris F.A. Johnson
On Tue, 15 Jun 2010, Rainer Rehak wrote: > Hey there, > is it a bug, that the declaration of an associative array within a > function does not survive till after the function, with primitive > variables on the other hand that concept works well. It's not a bug. It's an unfortunate side effect

Question if bug: declaration of an associative array within a function

2010-06-15 Thread Rainer Rehak
Hey there, is it a bug, that the declaration of an associative array within a function does not survive till after the function, with primitive variables on the other hand that concept works well. Greetings Rainer bug_bash_declare-A.sh Description: Bourne shell script signature.asc Descriptio