diff options
author | Denys Vlasenko | 2012-04-24 19:21:16 +0200 |
---|---|---|
committer | Denys Vlasenko | 2012-04-24 19:21:16 +0200 |
commit | e39afe1fbd6d9f1ad1eea0052a5163572e11a98f (patch) | |
tree | f319e14175f80f51127f9d3bb168f556d7604a5b /testsuite | |
parent | 3a9365e2732f5df2cdef758bc1f6e5e9da8fbcef (diff) | |
download | busybox-e39afe1fbd6d9f1ad1eea0052a5163572e11a98f.zip busybox-e39afe1fbd6d9f1ad1eea0052a5163572e11a98f.tar.gz |
sed: fix handling of s/// which has empty matches
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/sed.tests | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index ba163e9..9fa8e19 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests @@ -48,6 +48,7 @@ testing "sed accepts multiple -e" "sed -e 'i\' -e '1' -e 'a\' -e '3'" \ # substitutions testing "sed -n" "sed -n -e s/foo/bar/ -e s/bar/baz/" "" "" "foo\n" +testing "sed with empty match" "sed 's/z*//g'" "string\n" "" "string\n" testing "sed s//p" "sed -e s/foo/bar/p -e s/bar/baz/p" "bar\nbaz\nbaz\n" \ "" "foo\n" testing "sed -n s//p" "sed -ne s/abc/def/p" "def\n" "" "abc\n" |