From 3ba2df874ca27f075a0897210d8dce6c56646e60 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 7 Feb 2014 17:14:37 +0100 Subject: grep: properly handle grep -w "^str" in !EXTRA_COMPAT case too function old new delta grep_file 1267 1288 +21 Signed-off-by: Bartosz Golaszewski 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 412efffbb..74b0eb63f 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests @@ -159,6 +159,12 @@ testing "grep -w ^ doesn't hang" \ "anything\n" \ "" +testing "grep -w word doesn't match wordword" \ + "grep -w word input" \ + "" \ + "wordword\n" \ + "" + # testing "test name" "commands" "expected result" "file input" "stdin" # file input will be file called "input" # test can create a file "actual" instead of writing to stdout -- cgit v1.2.3