Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15923

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

From pepa65 <solusos@passchier.net>
Newsgroups gnu.bash.bug
Subject Re: test -v for array does not work as documented
Date 2020-02-20 21:14 +0700
Message-ID <mailman.1246.1582208095.2412.bug-bash@gnu.org> (permalink)
References (1 earlier) <c8e8a1f7-26f3-a189-8f02-562632597849@case.edu> <umu9ek0u1@kph.uni-mainz.de> <20200219165550.lgabpcwedqzmm54o@chazelas.org> <w6gsgj5zaoc.fsf@kph.uni-mainz.de> <ddf72d34-2d92-534f-e047-3b79d315ec25@passchier.net>

Show all headers | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: test -v for array does not work as documented pepa65 <solusos@passchier.net> - 2020-02-20 21:14 +0700

csiph-web