On 4/27/16 3:26 PM, Grisha Levit wrote: > |declare -n name=value|, when |name| is already a nameref, shows the > following presumably inconsistent behavior:
There's a fairly compelling argument -- and I think Piotr made it -- that `declare -n' shouldn't follow the nameref chain at all. If it does, you have to do something clumsy like removing the nameref attribute or unsetting and recreating it to change the value assigned to a nameref. ksh93 doesn't follow the chain, or does so inconsistently. 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/