Re: Difference between assignment via nameref vs `printf -v`?

2014-09-01 Thread Chet Ramey
On 8/31/14, 12:20 AM, lolilolicon wrote: > Assignment to a subscripted array variable behaves differently for > nameref vs `printf -v`, as shown below. [...] > Is subscripted array variable allowed as argument to `declare -p` in bash? > A quick test seems to suggest it's not -- consistent w

Re: Difference between assignment via nameref vs `printf -v`?

2014-09-01 Thread lolilolicon
On Tue, Sep 2, 2014 at 9:02 AM, Chet Ramey wrote: > It's a bug that results in `arr[0]' being created as a shell variable. > I've attached a patch for people who want to experiment with it. I applied it against 4.3.24 but it failed to build... Am I missing some patch in between? variables.c:2560