-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 4/9/2009 10:27 PM:
>> I'm also leaning towards omitting the else if $1 is provably blank,
>> otherwise providing the : in case non-blank $1 ultimately expands to a
>> blank (unless someone finds a shell where 'if false ; then :; fi; echo $?'
>> fails to output 0).  AS_CASE and AS_FOR are also candidates for this.  And
>> it will be easier with m4_ifblank.  Stay tuned; I'll have a patch by the
>> end of the week.
> 
> Here's what I'm about to apply.

Sorry for committing before the testsuite completed.  It turns out that
this introduced a regression in 'make check TESTSUITEFLAGS="-k
AC_RUN_IFELSE"', due to the following:

$ if false; then :; else echo $?; fi
1

But adding the : after the else, we have effectively made it impossible
for the user to grab $? after the if condition, so I'll have to rethink
this patch.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----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

iEYEARECAAYFAknkko0ACgkQ84KuGfSFAYAe5ACg1xpuoIh5ilPHWUfbwN7YAE7K
uSIAn2chMTaB3zE8ggZskVW6Iq5+ojGT
=cKHm
-----END PGP SIGNATURE-----


Reply via email to