[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New array_expand_once option
From: |
alex xmb ratchev |
Subject: |
Re: New array_expand_once option |
Date: |
Wed, 14 Jun 2023 23:18:20 +0200 |
On Wed, Jun 14, 2023, 15:34 Chet Ramey <chet.ramey@case.edu> wrote:
> 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.
>
hello there ..
i dont get much
it d be an arith err if array wasnt -A
.. ?
so i shopt -s array_expand_once
and [[ -v foo["$var"] ]]
.. is the right way ? ( for the change , the future )
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/
>
>
- New array_expand_once option, Chet Ramey, 2023/06/13
- Re: New array_expand_once option, alex xmb ratchev, 2023/06/13
- Re: New array_expand_once option, Chet Ramey, 2023/06/14
- Re: New array_expand_once option,
alex xmb ratchev <=
- Re: New array_expand_once option, Chet Ramey, 2023/06/15
- Re: New array_expand_once option, alex xmb ratchev, 2023/06/15
- Re: New array_expand_once option, alex xmb ratchev, 2023/06/17
- Re: New array_expand_once option, Dennis Williamson, 2023/06/17
- Re: New array_expand_once option, alex xmb ratchev, 2023/06/17
- Re: New array_expand_once option, Chet Ramey, 2023/06/19
- Re: New array_expand_once option, Chet Ramey, 2023/06/19
Re: New array_expand_once option, alex xmb ratchev, 2023/06/17