]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Correct previous patch.
authorEric Blake <ebb9@byu.net>
Tue, 14 Oct 2008 17:52:38 +0000 (11:52 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 14 Oct 2008 17:52:38 +0000 (11:52 -0600)
* doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
all.

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

index 071f2a9c89f0311e6997ec5ed6be2311479aa448..8a4504c46d2cac0ce8234f557451da9cdefd5694 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-10-14  Eric Blake  <ebb9@byu.net>
 
+       Correct previous patch.
+       * doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
+       all.
+
        Document shell function environment pitfall.
        * doc/autoconf.texi (Shell Functions): Document bugs in bash,
        Solaris /bin/sh.
index dc8646263350c3f676c30b5837173923e25e0e8d..ddd0638a9bd745a641a70365a35dea73888158c7 100644 (file)
@@ -14226,15 +14226,15 @@ and other options upon function entry and exit.  Inside a function,
 @acronym{IRIX} sh sets @samp{$0} to the function name.
 
 It is not portable to pass temporary environment variables to shell
-functions.  Solaris @command{/bin/sh} does not see the variable.  Meanwhile,
-@command{bash} 3.2 breaks the Posix rule that the assignment must not affect
-the current environment, but only when Posix compliance is requested!
+functions.  Solaris @command{/bin/sh} does not see the variable.
+Meanwhile, not all shells follow the Posix rule that the assignment must
+affect the current environment in the same manner as special built-ins.
 
 @example
 $ @kbd{/bin/sh -c 'func()@{ echo $a;@}; a=1 func; echo $a'}
 @result{}
 @result{}
-$ @kbd{bash -c 'func()@{ echo $a;@}; a=1 func; echo $a'}
+$ @kbd{ash -c 'func()@{ echo $a;@}; a=1 func; echo $a'}
 @result{}1
 @result{}
 $ @kbd{bash -c 'set -o posix; func()@{ echo $a;@}; a=1 func; echo $a'}