]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (Limitations of Builtins): Do not invoke
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 27 Oct 2006 23:01:06 +0000 (23:01 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 27 Oct 2006 23:01:06 +0000 (23:01 +0000)
`trap ... 0' inside a function, for AIX sh.

ChangeLog
doc/autoconf.texi

index fd10f3e320f534b321e1750179017d4573e4672c..959ca7f983c8c9efbb8a0d20d7f88dc88088db11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * doc/autoconf.texi (Limitations of Builtins): Do not invoke
+       `trap ... 0' inside a function, for AIX sh.
+
 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
 
        * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0,
index 8c8e7c960ece33fb983d2e998158c6f7cca1c022..80e49e042d075d7f0816e2faf39471ee72017baf 100644 (file)
@@ -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.,