diff options
author | dds <dds@FreeBSD.org> | 2009-09-20 14:20:00 +0000 |
---|---|---|
committer | dds <dds@FreeBSD.org> | 2009-09-20 14:20:00 +0000 |
commit | 41d12566f017044fd0b994c7ce911a69c768edd7 (patch) | |
tree | 1ab433e539f1fa3dcb3967d2766ef229354eaa8e /tools/regression/usr.bin | |
parent | 96199e6b701cfd47d391b0bc4fc2021e8099fc7d (diff) | |
download | FreeBSD-src-41d12566f017044fd0b994c7ce911a69c768edd7.zip FreeBSD-src-41d12566f017044fd0b994c7ce911a69c768edd7.tar.gz |
Describe how other systems treat this case.
Diffstat (limited to 'tools/regression/usr.bin')
-rw-r--r-- | tools/regression/usr.bin/sed/multitest.t | 6 |
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 fefc70b..2d808916 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\[[' } |