projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
grep: Fix -f FILE when FILE is empty and -x provided
[oweals/busybox.git]
/
testsuite
/
grep.tests
diff --git
a/testsuite/grep.tests
b/testsuite/grep.tests
index 26f8e69cfd44f08a68128a20035306cffa218bea..9c1f354994f1a6e38a3e85f9ed1ff5c3eadcfd2c 100755
(executable)
--- a/
testsuite/grep.tests
+++ b/
testsuite/grep.tests
@@
-129,6
+129,12
@@
testing "grep -v -f EMPTY_FILE" \
"" \
"test\n"
+testing "grep -vxf EMPTY_FILE" \
+ "grep -vxf input" \
+ "test\n" \
+ "" \
+ "test\n"
+
testing "grep -Fw matches only words" \
"grep -Fw foo input" \
"" \