[SCM] GNU Autoconf source repository branch, master, updated. v2.65-91-gf08d6f4
"Eric Blake" <[email protected]> Fri, 18 Jun 2010 15:13:19 +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=f08d6f4f9f35c08cf7c0dee2f90b1bb2c0fb809e
The branch, master has been updated
via f08d6f4f9f35c08cf7c0dee2f90b1bb2c0fb809e (commit)
from eace0e6fec4e87e9fc0e931ee191734c6cafb9c5 (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 f08d6f4f9f35c08cf7c0dee2f90b1bb2c0fb809e
Author: Bruno Haible <[email protected]>
Date: Fri Jun 18 09:05:29 2010 -0600
Document sed -e limitation.
* doc/autoconf.texi (Limitations of Usual Tools): Mention portability
problem of sed -e option with script fragments.
Signed-off-by: Eric Blake <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
doc/autoconf.texi | 16 ++++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6e37499..52a7bb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-18 Bruno Haible <[email protected]>
+
+ Document sed -e limitation.
+ * doc/autoconf.texi (Limitations of Usual Tools): Mention portability
+ problem of sed -e option with script fragments.
+
2010-06-17 Ralf Wildenhues <[email protected]>
Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index f6eb362..eba61f4 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -18237,6 +18237,22 @@ but Posix says that this use of a semicolon has undefined effect if
should use semicolon only with simple scripts that do not use these
verbs.
+The argument of the @option{-e} option must be a syntactically complete
+script. GNU @command{sed} allows to pass multiple script fragments,
+each as argument of a separate @option{-e} option, that are then combined,
+with newlines between the fragments. A future Posix revision may allow
+this as well. But in Posix:2008, this is not allowed, and the
+@command{sed} programs on Solaris 10, HP-UX 11, and AIX don't allow it
+either:
+
+@example
+$ @kbd{echo a | sed -n -e 'i\}
+@kbd{0'}
+0
+$ @kbd{echo a | sed -n -e 'i\' -e 0}
+Unrecognized command: 0
+@end example
+
Commands inside @{ @} brackets are further restricted. Posix says that
they cannot be preceded by addresses, @samp{!}, or @samp{;}, and that
each command must be followed immediately by a newline, without any
hooks/post-receive
--
GNU Autoconf source repository