apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Bowsher <ma...@ukf.net>
Subject Re: svn commit: r382752 - /apr/apr/trunk/build/MakeEtags
Date Fri, 03 Mar 2006 17:51:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Garrett Rooney wrote:
>> -etags=~/local/bin/etags
>> +etags=${ETAGS-etags}
> 
> Isn't that supposed to be ${ETAGS:-etags} ?
> You seem to have dropped the colon.

Both of these are valid in modern-ish Bourne-type shells:

${VAR-fallback_if_unset}
${VAR:-fallback_if_unset_or_set_to_null_string}

The first form is shorter to type, and the autoconf docs say that it is
fractionally more portable.


Max.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)

iD8DBQFECII0fFNSmcDyxYARAkyKAKCfJ1J3NMHNSJZhfBh6b8qmyz9FuwCguIr/
IUIrOAOZitsaohE7moTBcqU=
=frIR
-----END PGP SIGNATURE-----

Mime
View raw message