On 2/24/13 11:59 PM, phil colbourn wrote:
> Bash Version: 4.2
> Patch Level: 37
> Release Status: release
>
> Description:
>
> Within (( )), 'b=b+1' will crash bash with a segment fault if it follows an
> array read such as 'a=X[b]'.
Thanks for the report and the test case. This was reported p
phil@rex:~$ unset a b X; declare -i a b=1; declare -ia X=(1 2 3);
phil@rex:~$ unset a b X; declare -i a b=1; declare -ia X=(1 2 3); (( a=X[b]
)); echo $a
2
phil@rex:~$ cd Development/pc-z80
phil@rex:~/Development/pc-z80$ chmod +x pc-crash-bash.bash
phil@rex:~/Development/pc-z80$ ./pc-crash-bash.bas