bug-bash
[Top][All Lists]
Advanced

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

Re: New array_expand_once option


From: Chet Ramey
Subject: Re: New array_expand_once option
Date: Wed, 14 Jun 2023 09:34:11 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 6/13/23 7:12 PM, alex xmb ratchev wrote:

any word s about [[ -v
.. ?


Using the assignments above,

[[ -v a["$subscript"] ]]

is already an arithmetic expansion error in bash-5.2, but not in bash-5.1.
Inhibiting double expansions like those for shell compound commands was one
of the changes between bash-5.1 and bash-5.2.

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




reply via email to

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