Re: declare ref[x] segfault and garbage values

2016-06-05 Thread Chet Ramey
On 6/2/16 7:08 AM, Grisha Levit wrote: > These are maybe similar to the less-interesting issue of namerefs pointing > to array subscripts, but are triggered by relatively normal assignments: All the same problem, with the same fix: accurately reproducing the original name and assignment statement

declare ref[x] segfault and garbage values

2016-06-02 Thread Grisha Levit
These are maybe similar to the less-interesting issue of namerefs pointing to array subscripts, but are triggered by relatively normal assignments: -- This one is really strange: declare -n re=xxdeclare re[4]=78901234567890123456789012echo ${!re*} Segmentation fault: