grep: fix two bugs with -w
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 7 Jan 2014 13:57:42 +0000 (14:57 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 7 Jan 2014 13:59:30 +0000 (14:59 +0100)
commitcd55f2d9332489432ba2b3093903949c6c2e3e33
tree448769abf7fbdd41af7f74d75ecad91c5714b89e
parent432fbd7a1a71ab5a91a8cfab57fad74fda9389bb
grep: fix two bugs with -w

Unfortunately, with !EXTRA_COMPAT, "grep -w ^str" still erroneously matches "strstr".

function                                             old     new   delta
grep_file                                           1499    1510     +11

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
findutils/grep.c
testsuite/grep.tests