Hi Eric, On 21 Apr 2008, at 22:29, Eric Blake wrote:
According to Gary V. Vaughan on 4/21/2008 5:36 PM: |> +if test "${M4MODPATH+set}" = set ; then |> + M4MODPATH="@abs_top_builddir@/modules:$M4MODPATH" |> +else |> + M4MODPATH="@abs_top_builddir@/modules" |> +fi | | M4MODPATH="@abs_top_builddir@/modules${M4MODPATH+:$M4MODPATH}"I thought about that, but is it portable to all shells?
The : is part of the expansion, so using M4MODPATH="stuff${M4MODPATH +stuff}"
is no different to 'if test "${M4MODPATH+stuff}" = stuff'
Then again, maybe I was just misreading http://www.gnu.org/software/autoconf/manual/autoconf.html#Shell-Substitutions about restrictions against non-portable ${a:+b}.
Yeah, shell variable expansions are far too numerous to hold in your head
all at the same time! :-) Cheers, Gary -- ())_. Email me: [EMAIL PROTECTED] ( '/ Read my blog: http://blog.azazil.net / )= ...and my book: http://sources.redhat.com/autobook `(_~)_
PGP.sig
Description: This is a digitally signed message part