]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
doc: detail inconsistencies in sed word boundary handling
authorPádraig Brady <P@draigBrady.com>
Sun, 30 Oct 2016 16:58:09 +0000 (16:58 +0000)
committerEric Blake <eblake@redhat.com>
Tue, 1 Nov 2016 20:30:32 +0000 (15:30 -0500)
* doc/autoconf.texi (Limitations of usual tools): Display a
table showing where the various syntaxes for word boundaries
are supported.

doc/autoconf.texi

index 4be1f709c22e35db45c34928ce2a1cf3fea0d30b..3e3a894c1871788e387926b899bc426e7fc9c088 100644 (file)
@@ -19666,6 +19666,18 @@ $ @kbd{echo abc | busybox sed '/a\(b\)c/ s/a\(b\)c/\1/'}
 b
 @end example
 
+Portable scripts should be aware of the inconsistencies and options for
+handling word boundaries, as these are not specified by POSIX.
+
+@example
+                \<      \b      [[:<:]]
+Solaris 10      yes     no      no
+Solaris XPG4    yes     no      error
+NetBSD 5.1      no      no      yes
+FreeBSD 9.1     no      no      yes
+GNU             yes     yes     error
+busybox         yes     yes     error
+@end example
 
 @item @command{sed} (@samp{t})
 @c ---------------------------