grep: don't bail out on first mismatch if '-w' option is set
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
e0a6ab698f
commit
414db791d0
@@ -127,6 +127,12 @@ testing "grep -Fw doesn't stop on 1st mismatch" \
|
||||
"foop foo\n" \
|
||||
""
|
||||
|
||||
testing "grep -w doesn't stop on 1st mismatch" \
|
||||
"grep -w foo input" \
|
||||
"foop foo\n" \
|
||||
"foop foo\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