On Tuesday 14 April 2009 09:41:33 Eric Blake wrote:
> 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.

use "(exit $?);" instead ?
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to