bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] make function local


From: Dan Douglas
Subject: Re: [Help-bash] make function local
Date: Thu, 16 Apr 2015 10:43:25 -0500

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]