grep: Fix -f FILE when FILE is empty and -x provided
[oweals/busybox.git] / testsuite / grep.tests
index 26f8e69cfd44f08a68128a20035306cffa218bea..9c1f354994f1a6e38a3e85f9ed1ff5c3eadcfd2c 100755 (executable)
@@ -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" \
        "" \