Re: [bug #65981] "bash test -v" does not work as documented with "export
From:
Robert Elz
Subject:
Re: [bug #65981] "bash test -v" does not work as documented with "export KEY="
Date:
Sat, 13 Jul 2024 15:36:39 +0700
Date: Sat, 13 Jul 2024 08:57:18 +0200
From: Andreas =?iso-8859-1?B?S+Ro5HJp?= <andreas.kahari@abc.se>
Message-ID: <ZpIlToZgu2veigK3@eeyore.spotted-drum.ts.net>
| After the "export", the variable has been *set*.
That's right, but there's no point answering that message here,
the anonymous poster will almost certainly never see it.
Lawrence already replied on savannah so there's no need to
do that either (I looked).
| If you want to test whether a variable contains only an empty string,
| use "test -z variablename".
That would be a guaranteed false. You need test -z "${variablename}"
kre