Ethereal-dev: RE: [Ethereal-dev] [PATCH] acinclude.m4: --with-krb5

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Tue, 18 May 2004 14:20:27 +0200
|From: Thomas Anders
|
|
|Joerg Mayer wrote:
|>>- krb5-config is not in PATH (making $KRB5_CONFIG empty, but 
|>> "test -x" succeeds)
|>>
|>>The attached patch (for acinclude.m4) should fix this.
|> 
|> 
|> I don't know how the patch fixes this problem, but as it 
|> fixes the first one I've applied it anyway.
|
|Proper quoting makes the difference:
|
|sh# echo $BASH_VERSION
|2.05b.0(1)-release
|sh# KRB5_CONFIG=""
|sh# test -x $KRB5_CONFIG && echo yes
|yes
|sh# test -x "$KRB5_CONFIG" && echo yes
|sh#

Reason for this is that $FOO expands to nothing if FOO is empty or does not
exist, and that "$FOO" expands to an empty string if FOO is empty or does
not exist, so it counts as an argument on the command-line.

Regards,

Olivier