On 4/22/20 6:05 PM, Daniel Molina wrote:
> Hello,
> 
> Is the following an intended behavior? Undefined? A bug?
> 
> $ a[1]=2; declare -n ref=a[1]; echo $ref $((ref))
> 2 0

Thanks for the report. It looks like a bug, even though the rules for
evaluating strings in the expression evaluator are slightly different
from the ones for nameref resolution.

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

Reply via email to