[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Behaviour of test -v with assoc array and quote character in key
From: |
Greg Wooledge |
Subject: |
Re: Behaviour of test -v with assoc array and quote character in key |
Date: |
Tue, 23 Feb 2021 08:34:37 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Tue, Feb 23, 2021 at 02:03:55PM +0100, Andreas Schwab wrote:
> On Feb 23 2021, Greg Wooledge wrote:
>
> > No amount of quoting will make (( 'assoc[$var]'++ )) work.
>
> (( assoc[var]++ ))
>
> Andreas.
This is not the same as assoc[$var]. Yours uses the literal string var
as the key, not the contents of the variable named var.
- Re: Behaviour of test -v with assoc array and quote character in key, (continued)
- Re: Behaviour of test -v with assoc array and quote character in key, Chet Ramey, 2021/02/15
- Re: Behaviour of test -v with assoc array and quote character in key, Andreas Schwab, 2021/02/23
- Re: Behaviour of test -v with assoc array and quote character in key,
Greg Wooledge <=
- Re: Behaviour of test -v with assoc array and quote character in key, Oğuz, 2021/02/23
- Re: Behaviour of test -v with assoc array and quote character in key, Greg Wooledge, 2021/02/23
- Re: Behaviour of test -v with assoc array and quote character in key, Oğuz, 2021/02/23
- Re: Behaviour of test -v with assoc array and quote character in key, Chet Ramey, 2021/02/23