]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Clarify documentation about Solaris sed quantifier restriction.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 22 Sep 2009 05:36:04 +0000 (07:36 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 22 Sep 2009 05:36:04 +0000 (07:36 +0200)
* doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
not work after subexpressions, \{M,N\} only after one-character
expressions.  From GCC PR 38923.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
doc/autoconf.texi

index 6b338d07d9d208240664b91081ac119453acebf0..d3443f7bde15bf5251268fb1459a7f31d7dae1fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Clarify documentation about Solaris sed quantifier restriction.
+       * doc/autoconf.texi (Limitations of Usual Tools) <sed>: '*' does
+       not work after subexpressions, \{M,N\} only after one-character
+       expressions.  From GCC PR 38923.
+
 2009-09-21  Eric Blake  <ebb9@byu.net>
 
        Fit configure output in 80 columns.
index 53fab23e6c26d5bc364d97577bf0fe51c60c9ce1..4032b9c102d323c6f6f482c0a7718fdcf9ff6dcb 100644 (file)
@@ -17967,9 +17967,11 @@ Nested parentheses in patterns (e.g., @samp{\(\(a*\)b*)\)}) are
 quite portable to current hosts, but was not supported by some ancient
 @command{sed} implementations like SVR3.
 
-Some @command{sed} implementations, e.g., Solaris,
-restrict the special role of the asterisk to one-character regular expressions.
-This may lead to unexpected behavior:
+Some @command{sed} implementations, e.g., Solaris, restrict the special
+role of the asterisk @samp{*} to one-character regular expressions and
+back-references, and the special role of interval expressions
+@samp{\@{@var{m}\@}}, @samp{\@{@var{m},\@}}, or @samp{\@{@var{m},@var{n}\@}}
+to one-character regular expressions.  This may lead to unexpected behavior:
 
 @example
 $ @kbd{echo '1*23*4' | /usr/bin/sed 's/\(.\)*/x/g'}