Re: Global variable modification by nameref chain

2016-06-12 Thread Chet Ramey
On 6/9/16 6:06 AM, Dan Douglas wrote: > $ bash -c 'typeset -n a=b b; b=a[1]; a=foo; typeset -p a b' # bash 4.3 > declare -a a='([1]="foo")' > declare -n b="a[1]" > $ ./bash -c 'typeset -n a=b b; b=a[1]; typeset -p a b; a=foo' # 4.4 > declare -n a="b" > declare -n b="a[1]" > ./bash: line 0: `a[1]

Re: convoluted script causes bash to block unexpectedly

2016-06-12 Thread Chet Ramey
On 6/10/16 6:10 PM, Iain Calder wrote: > Bash Version: 4.1 > Patch Level: 5 > Release Status: release > > Description: > Under a convoluted sequence of events, bash blocks unexpectedly. > Following is the minimum amount of code that can replicate the problem. > See comments in c