From: Ralf Wildenhues Date: Thu, 15 Nov 2007 06:58:03 +0000 (+0100) Subject: Shell functions and variables may share a namespace. X-Git-Tag: v2.62~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c33d474779c0351224d340b419ea32e85a2ae9f0;p=thirdparty%2Fautoconf.git Shell functions and variables may share a namespace. * doc/autoconf.texi (Portable Shell): Mention Solaris sh limitation. --- diff --git a/ChangeLog b/ChangeLog index 1e6baa41..1d697996 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-15 Ralf Wildenhues + + Shell functions and variables may share a namespace. + * doc/autoconf.texi (Portable Shell): Mention Solaris sh + limitation. + 2007-11-14 Paul Eggert * lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 12eef55f..c7f8d2a9 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -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