bug-bash
[Top][All Lists]
Advanced

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

Re: test -v for array does not work as documented


From: pepa65
Subject: Re: test -v for array does not work as documented
Date: Thu, 20 Feb 2020 21:14:39 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 20/02/2020 19.48, Ulrich Mueller wrote:
> Still, I think it's sad that there isn't a command that can test for
> assigned vs void variable, without the need for parsing of declare -p
> output.

There is no need to parse, the return value of `declare -p var` or
`typeset -p var` will tell you what you want.

Peter



reply via email to

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