Re: nameref/subscript fixes for unset builtin

2016-06-02 Thread Chet Ramey
On 5/31/16 11:40 PM, Grisha Levit wrote: > The patch below addresses the following three issues: Thanks for the report and patch. At some point, I might make `unset -n n[0]' work the same as `unset -n n'. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ar

Re: nameref/subscript fixes for unset builtin

2016-06-01 Thread Grisha Levit
On Tue, May 31, 2016 at 11:40 PM, Grisha Levit wrote: The patch below addresses the following three issues: > Slightly better patch attached. ​ unset_nameref_subscripts-rev2.patch Description: Binary data

nameref/subscript fixes for unset builtin

2016-05-31 Thread Grisha Levit
The patch below addresses the following three issues: -- Doing unset -n n[0] actually unsets the target variable $ v=(0 1); declare -n n=v $ unset -n n[0] $ declare -p n vdeclare -n n="v" bash: declare: v: not found -- Unsetting namerefs t