summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko2018-03-29 18:03:50 +0200
committerDenys Vlasenko2018-03-29 18:03:50 +0200
commit03fd7e06f854d385070a6fc9714f445727c359cd (patch)
tree4e1b3874319a795ce7adb296b97891b7d549188e /testsuite
parent3be4b9b0dee790bc19314411f109d6dcb14f97dc (diff)
downloadbusybox-03fd7e06f854d385070a6fc9714f445727c359cd.zip
busybox-03fd7e06f854d385070a6fc9714f445727c359cd.tar.gz
grep: fix echo "aa" | busybox grep -F -w "a" (should not match)
function old new delta grep_file 1461 1470 +9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/grep.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index ed4ba45..d0b0d27 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -165,6 +165,12 @@ testing "grep -w word doesn't match wordword" \
"wordword\n" \
""
+testing "grep -F -w w doesn't match ww" \
+ "grep -F -w w input" \
+ "" \
+ "ww\n" \
+ ""
+
testing "grep -w word match second word" \
"grep -w word input" \
"bword,word\n""wordb,word\n""bwordb,word\n" \