2006-07-24 Paul Eggert <[EMAIL PROTECTED]>
* doc/autoconf.texi (Limitations of Usual Tools): Warn about
sed stripping leading white space from text. From Bruno
Haible.
Thanks for mentioning that. I installed the following
slightly-different patch.
--- autoconf.texi 24 Jul 2006 19:35:50 -0000 1.1064
+++ autoconf.texi 24 Jul 2006 19:55:45 -0000 1.1065
@@ -9838,7 +9838,7 @@ m4_foreach([myvar], [[foo], [bar, baz]],
@defmac m4_foreach_w (@var{var}, @var{list}, @var{expression})
@msindex{foreach_w}
-Loop over the whitespace-separated list @var{list}, assigning each value
+Loop over the white-space-separated list @var{list}, assigning each value
to @var{var}, and expand @var{expression}.
The deprecated macro @code{AC_FOREACH} is an alias of
@@ -13671,6 +13671,23 @@ Also note that Posix requires that the @
On the other hand, no white space is allowed between @samp{:} and the
subsequent label name.
+Some @command{sed} implementations (e.g., MacOS X 10.4, Solaris 10
[EMAIL PROTECTED]/usr/ucb/sed}) strip leading white space from the text of
[EMAIL PROTECTED], @samp{c}, and @samp{i} commands. Prepend a backslash to
+work around this incompatibility with Posix:
+
[EMAIL PROTECTED]
+$ @kbd{echo flushleft | sed -e 'a\}
[EMAIL PROTECTED] indented'}
+flushleft
+indented
+$ @kbd{echo foo | sed -e 'a\}
[EMAIL PROTECTED] indented'}
+flushleft
+ indented
[EMAIL PROTECTED] example
+
+
@item @command{sed} (@samp{t})
@c ---------------------------
@prindex @command{sed} (@samp{t})