From 03fd7e06f854d385070a6fc9714f445727c359cd Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 29 Mar 2018 18:03:50 +0200 Subject: 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 --- testsuite/grep.tests | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testsuite/grep.tests') diff --git a/testsuite/grep.tests b/testsuite/grep.tests index ed4ba455e..d0b0d2767 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" \ -- cgit v1.2.3