bug-bash
[Top][All Lists]
Advanced

[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


reply via email to

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