]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Document a Solaris /bin/sh bug with 'set -e'.
authorEric Blake <ebb9@byu.net>
Tue, 18 Nov 2008 13:30:37 +0000 (06:30 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 18 Nov 2008 13:30:37 +0000 (06:30 -0700)
* doc/autoconf.texi (Shell Functions): Mention the bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/autoconf.texi

index 41f97d338110ffe01d47eb2024ea71a807fae5a2..93c085c77676c0663da303e188a17e043a20fffe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-18  Eric Blake  <ebb9@byu.net>
+
+       Document a Solaris /bin/sh bug with 'set -e'.
+       * doc/autoconf.texi (Shell Functions): Mention the bug.
+
 2008-11-17  Eric Blake  <ebb9@byu.net>
 
        Detect empty list in AS_FOR.
index 07db25410c492993e4445d9d46664bfb85cf0e88..90e6ceee266257dcd8eee3e1a777d64b3ba04050 100644 (file)
@@ -14660,6 +14660,15 @@ $ @kbd{ash -c 'foo()@{ echo $?; @}; trap foo 0; (exit 2); exit 2'; echo $?}
 2
 @end example
 
+Not all shells treat shell functions as simple commands impacted by
+@samp{set -e}, for example with Solaris 10 @command{bin/sh}:
+
+@example
+$ @kbd{bash -c 'f()@{ return 1; @}; set -e; f; echo oops}
+$ @kbd{/bin/sh -c 'f()@{ return 1; @}; set -e; f; echo oops}
+oops
+@end example
+
 Shell variables and functions may share the same namespace, for example
 with Solaris 10 @command{/bin/sh}: