summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/sed/multitest.t
diff options
context:
space:
mode:
authordds <dds@FreeBSD.org>2009-09-20 15:17:40 +0000
committerdds <dds@FreeBSD.org>2009-09-20 15:17:40 +0000
commit668711df00c430313df2e249177f681be4ccdf02 (patch)
tree45471d179764c9c98570c1141d2a2451083b125c /tools/regression/usr.bin/sed/multitest.t
parentcc9cdb30b322b4e16858d33e489cc6b5ab8c13fc (diff)
downloadFreeBSD-src-668711df00c430313df2e249177f681be4ccdf02.zip
FreeBSD-src-668711df00c430313df2e249177f681be4ccdf02.tar.gz
Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation
of the y (translate) command. "If a backslash character is immediately followed by a backslash character in string1 or string2, the two backslash characters shall be counted as a single literal backslash character" Pointed by: Marius Strobl Obtained from: Mac OS X
Diffstat (limited to 'tools/regression/usr.bin/sed/multitest.t')
-rw-r--r--tools/regression/usr.bin/sed/multitest.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/regression/usr.bin/sed/multitest.t b/tools/regression/usr.bin/sed/multitest.t
index 2d808916..9322078 100644
--- a/tools/regression/usr.bin/sed/multitest.t
+++ b/tools/regression/usr.bin/sed/multitest.t
@@ -445,6 +445,10 @@ u2/g' lines1
# 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\[['
+ COMMENT='\ in y command'
+ mark '8.21'
+ echo 'a\b(c' |
+ $SED 'y%ABCDEFGHIJKLMNOPQRSTUVWXYZ, /\\()"%abcdefghijklmnopqrstuvwxyz,------%'
}
test_error()
OpenPOWER on IntegriCloud