Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198745 - sys-apps/grep-2.5.1a-r1 has problems with -Fw
Summary: sys-apps/grep-2.5.1a-r1 has problems with -Fw
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-10 21:09 UTC by Christoph Bussenius
Modified: 2009-02-10 05:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Bussenius 2007-11-10 21:09:30 UTC
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:
Comment 1 SpanKY gentoo-dev 2009-02-10 05:59:30 UTC
fixed with grep-2.5.3+ which is in the tree