aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-05-21 19:22:50 +0000
committerMarius Strobl <marius@FreeBSD.org>2010-05-21 19:22:50 +0000
commitd43a26d474bca74f27191b209ca26ef0b827d784 (patch)
treefc019ace803e864501813d3e91f9f2f6cac9c102 /tools
parentd9dca217f751dab187adccbace90f002d8816988 (diff)
Notes
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/usr.bin/sed/multitest.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/regression/usr.bin/sed/multitest.t b/tools/regression/usr.bin/sed/multitest.t
index fefc70b02420..2d808916f9a6 100644
--- a/tools/regression/usr.bin/sed/multitest.t
+++ b/tools/regression/usr.bin/sed/multitest.t
@@ -438,7 +438,11 @@ u2/g' lines1
# This is a matter of interpretation
# POSIX 1003.1, 2004 says "Within the BRE and the replacement,
# the BRE delimiter itself can be used as a *literal* character
- # if it is preceded by a backslash
+ # if it is preceded by a backslash"
+ # SunOS 5.1 /usr/bin/sed and Mac OS X follow the literal POSIX
+ # interpretation.
+ # GNU sed version 4.1.5 treats \[ as the beginning of a character
+ # set specification (both with --posix and without).
mark '8.19' ; sed 's/l/[/' lines1 | $SED -e 's[\[.[X['
mark '8.20' ; sed 's/l/[/' lines1 | $SED -e 's[\[.[X\[['
}