sed: fix breakage added by zero length match code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2012-06-07 16:34:57 +02:00
parent c35545a100
commit 84406e459b
2 changed files with 5 additions and 1 deletions

View File

@@ -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