The following command echo -e 'blah blubb\nb' | grep -Fw b prints two lines: blah blubb b IMHO, the correct output would be just "b" (because of -w, it should only print lines where "b" stands alone). It'll print the right result if you omit -F. I've reported this bug upstream: http://savannah.gnu.org/bugs/?17274 They say they fixed it in some patch. However, the current Gentoo version of grep (2.5.1a-r1) still has this problem. Reproducible: Always Steps to Reproduce:
fixed with grep-2.5.3+ which is in the tree