bug-autoconf
[Top][All Lists]
Advanced

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

Re: test -n "${var+set}"?


From: Derek Robert Price
Subject: Re: test -n "${var+set}"?
Date: Wed, 18 Feb 2004 15:24:51 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Larry Jones wrote:

>Derek Robert Price writes:
>
>>Got it now.  I read the bash man page as stating that this construct
>>wouldn't echo "set" for a variable set to the empty string.
>
>
>That's because the man page is talking about :+ rather than +:
>
>    When not performing substring expansion, bash tests for a
>    parameter that is unset or null; omitting the colon results in a
>    test only for a parameter that is unset.


I see it now.  Thanks.  :)

Derek

- --
                *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQFAM8oSLD1OTBfyMaQRApDIAKDe6RSlXtLjunWoKnchwvc8s2LMywCglz2B
GkwuGjsm6zYcTxG7a4lYyMQ=
=fb/y
-----END PGP SIGNATURE-----






reply via email to

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