bc: upstream fixes
[oweals/busybox.git] / testsuite / grep.tests
index ed4ba455eb84ccb9a6135c11b3bd9e80c193ebdb..e578897905e3a0f48b1c3f78937af3bb670f5d35 100755 (executable)
@@ -15,7 +15,7 @@
 
 testing "grep (exit with error)" "grep nonexistent 2> /dev/null ; echo \$?" \
        "1\n" "" ""
-testing "grep (exit success)" "grep grep $0 > /dev/null 2>&1 ; echo \$?" "0\n" \
+testing "grep (exit success)" "grep grep '$0' > /dev/null 2>&1 ; echo \$?" "0\n" \
        "" ""
 # Test various data sources and destinations
 
@@ -165,6 +165,12 @@ testing "grep -w word doesn't match wordword" \
        "wordword\n" \
        ""
 
+testing "grep -F -w w doesn't match ww" \
+       "grep -F -w w input" \
+       "" \
+       "ww\n" \
+       ""
+
 testing "grep -w word match second word" \
        "grep -w word input" \
        "bword,word\n""wordb,word\n""bwordb,word\n" \