autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS_IF optimization (was: AC_TRY_COMPILE() annoyances with 2.63b)


From: Andreas Schwab
Subject: Re: AS_IF optimization (was: AC_TRY_COMPILE() annoyances with 2.63b)
Date: Tue, 07 Apr 2009 15:01:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

Eric Blake <address@hidden> writes:

> According to Andreas Schwab on 4/7/2009 3:47 AM:
>>>From the autoconf manual:
>>
>>      There are shells that do not reset the exit status from an `if':
>>
>>           $ if (exit 42); then true; fi; echo $?
>>           42
>>
>>      whereas a proper shell should have printed `0'.
>
> Which shells?  Solaris /bin/sh passed this test (to my surprise, since if
> fails the similar test for 'case `false` in *);; esac').  Even cygwin's
> super-old ash passed this, although it falls flat on a number of other
> constructs.  Could this be a case of urban legend?

According to <http://www.in-ulm.de/~mascheck/bourne/> this was fixed in
the System III shell.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]