apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: svn commit: r382752 - /apr/apr/trunk/build/MakeEtags
Date Fri, 03 Mar 2006 18:00:43 GMT
On 3/3/06, Max Bowsher <maxb1@ukf.net> wrote:
> -----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.

Ahh, ok.  I had only ever seen the version with the colon (In APR's
buildconf script, FWIW).

-garrett

Mime
View raw message