On 5/17/16 4:40 PM, Grisha Levit wrote:
> Multiple variables with the same name are created at the same scope when
> doing assignments to subscripts of nameref variables that point to
> variables that are unset.
> 
> |$ unset var; declare -n ref=var; ref[0]=foo $ declare -p ref declare -a
> ref=([0]="foo") |
> 
> I think the more reasonable thing would be to create a new array variable 
> $var.

I agree.  I'll fix this for bash-4.4.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to