Re: AS_EXIT and default value

2009-07-25 Thread Ralf Wildenhues
Hi Eric, * Eric Blake wrote on Sat, Jul 25, 2009 at 03:02:50AM CEST: > According to Ralf Wildenhues on 7/24/2009 2:39 PM: > > Do you see any other way out except to undo the move to use a shell > > function for AS_EXIT (740062eb42)? > > Yep - by always passing an argument to the function (that is

Re: AS_EXIT and default value

2009-07-24 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Ralf Wildenhues on 7/24/2009 2:39 PM: > Do you see any other way out except to undo the move to use a shell > function for AS_EXIT (740062eb42)? Yep - by always passing an argument to the function (that is, doing the defaulting in m4sugar

AS_EXIT and default value

2009-07-24 Thread Ralf Wildenhues
As documented in autoconf.texi 'Shell Functions', Likewise, the state of `$?' is not reliable when entering a shell function. This has the effect that using a function as the first command in a `trap' handler can cause problems. This hit me with FreeBSD 6.4 /bin/sh, and it trips the AS_