diff --git a/testsuite/brackets.good b/testsuite/brackets.good deleted file mode 100644 index 73f87e7..0000000 --- a/testsuite/brackets.good +++ /dev/null @@ -1 +0,0 @@ -abcdefgh[ diff --git a/testsuite/brackets.inp b/testsuite/brackets.inp deleted file mode 100644 index 3cc5802..0000000 --- a/testsuite/brackets.inp +++ /dev/null @@ -1 +0,0 @@ -[[[[[[[[[ diff --git a/testsuite/brackets.sed b/testsuite/brackets.sed deleted file mode 100644 index 3c70da8..0000000 --- a/testsuite/brackets.sed +++ /dev/null @@ -1,8 +0,0 @@ -s/[[]/a/ -s/[[[]/b/ -s/[[[[]/c/ -s/[[[[[]/d/ -s/[[[[[[]/e/ -s/[[[[[[[]/f/ -s/[[[[[[[[]/g/ -s/[[[[[[[[[]/h/ diff --git a/testsuite/local.mk b/testsuite/local.mk index ace6588..57f2748 100644 --- a/testsuite/local.mk +++ b/testsuite/local.mk @@ -117,7 +117,7 @@ SEDTESTS += testsuite/8bit testsuite/newjis \ testsuite/subwrite testsuite/writeout \ testsuite/utf8-1 \ testsuite/utf8-2 testsuite/utf8-3 testsuite/utf8-4 \ - testsuite/badenc testsuite/inplace-hold testsuite/brackets \ + testsuite/badenc testsuite/inplace-hold \ testsuite/help testsuite/file \ testsuite/quiet testsuite/binary3 \ testsuite/binary2 testsuite/binary testsuite/dc @@ -195,9 +195,6 @@ EXTRA_DIST += \ testsuite/binary.sed \ testsuite/binary2.sed \ testsuite/binary3.sed \ - testsuite/brackets.good \ - testsuite/brackets.inp \ - testsuite/brackets.sed \ testsuite/bsd.good \ testsuite/bsd.sh \ testsuite/dc.good \ diff --git a/testsuite/misc.pl b/testsuite/misc.pl index e41cb19..2dee448 100644 --- a/testsuite/misc.pl +++ b/testsuite/misc.pl @@ -136,6 +136,23 @@ q)}, . "ok\n"} ], + + ['brackets', + qw(-f), + {IN => q(s/[[]/a/ +s/[[[]/b/ +s/[[[[]/c/ +s/[[[[[]/d/ +s/[[[[[[]/e/ +s/[[[[[[[]/f/ +s/[[[[[[[[]/g/ +s/[[[[[[[[[]/h/ +)}, + {IN => "[[[[[[[[[\n"}, + {OUT => "abcdefgh[\n"} + ], + + ['bkslashes', # Test backslashes in regex # bug in sed 4.0b