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 <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
07f417b6ab
commit
3ba2df874c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user