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

According to Mike Frysinger on 4/14/2009 4:27 PM:
>> $ 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.
> 
> use "(exit $?);" instead ?

Absolutely not - that would be a performance killer (bash is among the
shells that don't optimize away the subshell fork).

To put it in perspective, before this week, all four of these would cause
a syntax error:

AS_IF([:], [AC_REQUIRE(...)])
AS_IF([false], [], [AC_REQUIRE(...)])
AS_IF([:], [ ])
AS_IF([:], [], [ ])

whereas even with today's regression fix, three of the four now pass
(we're more lenient than we used to be, and we aren't breaking any
existing scripts that used proper quoting).

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

Eric Blake             e...@byu.net
-----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

iEYEARECAAYFAknlM9sACgkQ84KuGfSFAYDpnQCfYQ655v7GIK8HD1vTVGrrixlo
s7cAoJBPs/H6+bqyOagFpVPVzbIxh4wD
=NnAE
-----END PGP SIGNATURE-----


Reply via email to