On 4/17/20 5:48 AM, E. Choroba wrote:
> Bash Version: 4.4
> Patch Level: 23
> Release Status: release
>
> Description:
> Expansions in an assignment are documented under "SIMPLE COMMAND
> EXPANSION":
>
> > The text after the = in each variable assignment undergoes tilde
> > expansion, parameter expansion, command substitution, arithmetic
> > expansion, and quote removal before being assigned to the
> > variable.
>
> However, a compound assignment to an array is different: the
> values also undergo pathname and brace expansions:
It's true. The words in a compound assignment undergo all the shell
expansions.
> Fix:
> The additional expansions should be documented either in the
> paragraph quoted above, or in the "ARRAYS" section where compound
> assignment is described.
I'll add something.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/