This is probably not a good thing to be doing in the first place (I ran
into this before realizing that GROUPS was a special variable):
#!/bin/bash
crashy () { local -a GROUPS=(a b); }
crashy
But it probably shouldn't be doing this (tested in bash 4.2.42 on
archlinux x86_64, and bash 4.2.10 on ar
array variables more
consistent with normal variables, but I couldn't find anything in
CHANGES which obviously relates to this, so I'm not sure if this is a
bug or not.
Was I always mistaken in figuring that declaring an array also
initialized it?
--
Richard Tollerton
Chet Ramey writes:
> On 3/20/14 12:41 AM, Richard Tollerton wrote:
>>
>> I suppose that this change in behavior makes array variables more
>> consistent with normal variables, but I couldn't find anything in
>> CHANGES which obviously relates to this, so I'