[Top][All Lists]

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

Re: Expansions for array assignment not documented

From: Chet Ramey
Subject: Re: Expansions for array assignment not documented
Date: Fri, 17 Apr 2020 16:32:06 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

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
>     > 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

> 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.


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

reply via email to

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