Bug 5792

Summary: fgrep -w matches inside words too
Product: Busybox Reporter: Michael Tokarev <mjt+busybox>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

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