[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -v no longer works for associative arrays
From: |
Oğuz |
Subject: |
Re: -v no longer works for associative arrays |
Date: |
Thu, 13 Oct 2022 19:06:12 +0300 |
13 Ekim 2022 Perşembe tarihinde Chet Ramey <chet.ramey@case.edu> yazdı:
> There are other ways to test whether or not an associative array has any
> set elements, but there was no way to use `*' or `@' as a key in previous
> versions.
>
test -v seems broken anyway
$ declare -A foo=(a 42)
$ declare -a bar=(42)
$ test -v foo; echo $?
1
$ test -v bar; echo $?
0
--
Oğuz
- -v no longer works for associative arrays, Bryan Roessler, 2022/10/13
- Re: -v no longer works for associative arrays, Chet Ramey, 2022/10/13
- Re: -v no longer works for associative arrays,
Oğuz <=
- Re: -v no longer works for associative arrays, Chet Ramey, 2022/10/13
- Re: -v no longer works for associative arrays, Oğuz, 2022/10/13
- Re: -v no longer works for associative arrays, Bryan Roessler, 2022/10/13
- Re: -v no longer works for associative arrays, Chet Ramey, 2022/10/13
- Re: -v no longer works for associative arrays, Greg Wooledge, 2022/10/13
Re: -v no longer works for associative arrays, Greg Wooledge, 2022/10/13