[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autconf, configure & purify...
From: |
Eric Blake |
Subject: |
Re: autconf, configure & purify... |
Date: |
Fri, 24 Oct 2008 05:16:53 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ralf Wildenhues on 10/24/2008 12:39 AM:
>> AC_CHECK_PROGS(PURIFY,purify purify2002)
>>
>> if test -z $PURIFY; then
>
> This however does need quoting: if $PURIFY can ever be empty, then the
> shell will complain about a missing argument to 'test -z'. So use
> if test -z "$PURIFY"; ...
Actually, if $PURIFY is empty, the test will still return exit status 0,
since "-z" is a lone, non-empty argument. Silent misbehavior is even
worse than a shell complaint (you want exit status 1 if $PURIFY is empty).
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkkBrqUACgkQ84KuGfSFAYCvAACgz0sOa3dnCbxeS8P+ZApdgFZX
fiQAnR9tBotmecDCsTAwDTHowq8/QQ5t
=/whq
-----END PGP SIGNATURE-----
RE: autconf, configure & purify..., Boggis, Antony, 2008/10/24