From: Ralf Wildenhues Date: Fri, 27 Oct 2006 23:01:06 +0000 (+0000) Subject: * doc/autoconf.texi (Limitations of Builtins): Do not invoke X-Git-Tag: AUTOCONF-2.61~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84c6b667967575d643b14b05dd2792f92dfd4549;p=thirdparty%2Fautoconf.git * doc/autoconf.texi (Limitations of Builtins): Do not invoke `trap ... 0' inside a function, for AIX sh. --- diff --git a/ChangeLog b/ChangeLog index fd10f3e32..959ca7f98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-27 Ralf Wildenhues + + * doc/autoconf.texi (Limitations of Builtins): Do not invoke + `trap ... 0' inside a function, for AIX sh. + 2006-10-26 Paul Eggert * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0, diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 8c8e7c960..80e49e042 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -12813,7 +12813,9 @@ expr "X$ac_feature" : '.*[^-a-zA-Z0-9_]' >/dev/null && @prindex @command{trap} It is safe to trap at least the signals 1, 2, 13, and 15. You can also trap 0, i.e., have the @command{trap} run when the script ends (either via an -explicit @command{exit}, or the end of the script). +explicit @command{exit}, or the end of the script). The trap for 0 should be +installed outside of a shell function, or @acronym{AIX} 5.3 @command{/bin/sh} +will invoke the trap at the end of this function. Posix says that @samp{trap - 1 2 13 15} resets the traps for the specified signals to their default values, but many common shells (e.g.,