Eric Blake <ebb9@xxxxxxx> 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, schwab@xxxxxxxxxxxxxx GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf