sed: yet another fix on top of zero length match code

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2012-06-08 10:25:31 +02:00
parent ba1d561d76
commit 37ca36a711
2 changed files with 15 additions and 6 deletions

View File

@@ -302,10 +302,14 @@ 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" \
testing "sed zero chars match/replace logic must not falsely trigger here 1" \
"sed 's/a/A/g'" \
"_AAA1AA\n" "" "_aaa1aa\n"
testing "sed zero chars match/replace logic must not falsely trigger here 2" \
"sed 's/ *$/_/g'" \
"qwerty_\n" "" "qwerty\n"
# testing "description" "commands" "result" "infile" "stdin"
exit $FAILCOUNT