On 10/20/16 7:44 PM, Jack Kuan wrote:
> Thanks for replying.
> 
> I was expecting that in the second iteration of the loop, the
> local var=var_123  command would make var a normal variable again with
> value "var_123"

This is the bad assumption.  You didn't unset `var' before doing this, so
it retains its local attribute and its nameref attribute.  Trying to make
a local variable from an already-local variable is a no-op.

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

Reply via email to