Bug 5792 - fgrep -w matches inside words too
Summary: fgrep -w matches inside words too
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-18 08:27 UTC by Michael Tokarev
Modified: 2013-01-20 15:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tokarev 2012-12-18 08:27:17 UTC
Originally reported in Debian, http://bugs.debian.org/695862 against busybox 1.20:

$ echo foop | grep -w foo
$ echo foop | busybox grep -w foo
$ echo foop | fgrep -w foo
$ echo foop | busybox fgrep -w foo
foop

So, busybox grep handles -w correctly, while busybox Fgrep does not.
Comment 1 Denys Vlasenko 2013-01-20 15:58:28 UTC
Fixed in git:

commit 2f5b5beb28a3ffe9d12a19b79c453c640cee2f29
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Sun Jan 20 16:57:19 2013 +0100

    grep: fix grep -Fw not respecting the -w option