sed: fix breakage added by zero length match code
[oweals/busybox.git] / testsuite / sed.tests
index 375beb51839177095b17e435dfd1d64f17dd1041..12b36ae185cd12bcb1bf88cc775a886ed4e139cb 100755 (executable)
@@ -302,6 +302,10 @@ testing "sed zero chars match/replace advances correctly 2" \
        "sed 's [^ .]* x g'" \
        "x x.x\n" "" " a.b\n"
 
+testing "sed zero chars match/replace logic must not falsely trigger here" \
+       "sed 's/a/A/g'" \
+       "_AAA1AA\n" "" "_aaa1aa\n"
+
 # testing "description" "commands" "result" "infile" "stdin"
 
 exit $FAILCOUNT