]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Shell functions and variables may share a namespace.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 15 Nov 2007 06:58:03 +0000 (07:58 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 15 Nov 2007 06:58:03 +0000 (07:58 +0100)
* doc/autoconf.texi (Portable Shell): Mention Solaris sh
limitation.

ChangeLog
doc/autoconf.texi

index 1e6baa41ad398851bc8f631cc7befd6335759c82..1d697996ff248b52a6765d02da12e2a8d847fa78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Shell functions and variables may share a namespace.
+       * doc/autoconf.texi (Portable Shell): Mention Solaris sh
+       limitation.
+
 2007-11-14  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
index 12eef55fd764a34cc8c01657afd9a45ae2e9ea8a..c7f8d2a911119bf2973ac96f16310dfc6ae50bfb 100644 (file)
@@ -12162,7 +12162,16 @@ you should not rely on the error status of a subshell if the last
 command of that subshell was @code{exit} or @code{trap}, as this
 triggers bugs in zsh 4.x; while Autoconf tries to find a shell that
 does not exhibit the bug, zsh might be the only shell present on the
-user's machine.
+user's machine.  Also, variables and functions may share a namespace,
+for example with Solaris 10 @command{/bin/sh}:
+
+@example
+$ @kbd{f () @{ :; @}; f=; f}
+f: not found
+@end example
+
+@noindent
+For this reason, Autotest uses the prefix @samp{at_func_} for its functions.
 
 Some ancient systems have quite
 small limits on the length of the @samp{#!} line; for instance, 32