Re: [4.4.5] trouble declaring readonly array variables

2016-12-04 Thread Chet Ramey
On 12/3/16 10:26 PM, Laur Aliste wrote: > Hi, > upgraded bash from > GNU bash, version *4.3.30(1)-release* (x86_64-pc-linux-gnu) > to *4.4.5(1)-release* and noticed the *readonly* array variables fail to be > defined with init values. This was changed as the result of a bug report from December, 2

[4.4.5] trouble declaring readonly array variables

2016-12-03 Thread Laur Aliste
Hi, upgraded bash from GNU bash, version *4.3.30(1)-release* (x86_64-pc-linux-gnu) to *4.4.5(1)-release* and noticed the *readonly* array variables fail to be defined with init values. See sample snippet: o() { local i j readonly i=($1) readonly j=(1 2 3) echo "passed args expande