[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."
- Re: AC_TRY_COMPILE() annoyances with 2.63b, (continued)
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Eric Blake, 2009/04/06
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Mike Frysinger, 2009/04/06
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Ralf Wildenhues, 2009/04/06
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Mike Frysinger, 2009/04/06
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Eric Blake, 2009/04/06
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Ralf Wildenhues, 2009/04/07
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Ralf Wildenhues, 2009/04/07
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Mike Frysinger, 2009/04/07
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Andreas Schwab, 2009/04/07
- AS_IF optimization (was: AC_TRY_COMPILE() annoyances with 2.63b), Eric Blake, 2009/04/07
- Re: AS_IF optimization (was: AC_TRY_COMPILE() annoyances with 2.63b),
Andreas Schwab <=
- Re: AS_IF optimization, Eric Blake, 2009/04/07
- Re: AS_IF optimization, Eric Blake, 2009/04/10
- Re: AC_TRY_COMPILE() annoyances with 2.63b, Eric Blake, 2009/04/10