On 4/16/15 11:43 AM, Dan Douglas wrote:
> I thought Bash always first splits the identifier from the subscript,
> then checks which attributes the variable has set. If it has the
> associative array attribute plus a subscript then the subscript is
> only processed for expansions and the resulting string is used as the
> key. If the associative array attribute is not set then the subscript
> is processed for expansions and the resulting string is passed on to
> arithmetic evaluation.
> 
> Am I following the discussion correctly? i.e. if you have
> `a[b[text]]`, the treatment of `text` is entirely determined by b's
> attributes.

Yes, that's correct.  In the case I'm talking about, we're only concerned
with indexed arrays and the consequent arithmetic evaluation.

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