[SCM] GNU Autoconf source repository branch, master, updated. v2.68-98-g2f3cec7
"Eric Blake" <[email protected]> Fri, 11 Nov 2011 20:53:34 +0000
| Newsgroups | gmane.comp.sysutils.autoconf.cvs |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=2f3cec7dfc609308f645b593dc5e396f9f790f4d
The branch, master has been updated
via 2f3cec7dfc609308f645b593dc5e396f9f790f4d (commit)
from bd962acf3e0a2d38c11d048c8c36d9b4305b8604 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2f3cec7dfc609308f645b593dc5e396f9f790f4d
Author: Eric Blake <[email protected]>
Date: Fri Nov 11 13:51:33 2011 -0700
doc: mention export portability hint
* doc/autoconf.texi (Limitations of Builtins) <export>: Document
export limitation.
Suggested by Bruno Haible.
Signed-off-by: Eric Blake <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
doc/autoconf.texi | 14 ++++++++++++++
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e51f7d7..72b1dbc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-11-11 Eric Blake <[email protected]>
+
+ doc: mention export portability hint
+ * doc/autoconf.texi (Limitations of Builtins) <export>: Document
+ export limitation.
+ Suggested by Bruno Haible.
+
2011-10-21 Stefano Lattarini <[email protected]>
fortran: define $GFC to "yes" if $FC is a GNU compiler
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index b6dc67b..417c432 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -17642,6 +17642,20 @@ $ @kbd{ash -c 'export foo; env | grep foo'}
foo=
@end example
+Posix requires @command{export} to honor assignments made as arguments,
+but older shells did not support this. Portable scripts should separate
+assignments and exports into different statements (it does not matter if
+the export comes before or after the assignment).
+
+@example
+$ @kbd{bash -c 'export foo=bar; echo $foo'}
+bar
+$ @kbd{/bin/sh -c 'export foo=bar; echo $foo'}
+/bin/sh: foo=bar: is not an identifier
+$ @kbd{/bin/sh -c 'export foo; foo=bar; echo $foo'}
+bar
+@end example
+
@item @command{false}
@c ------------------
@prindex @command{false}
hooks/post-receive
--
GNU Autoconf source repository