grep: fix -w match if first match isn't a word, but second is. Closes 4520
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Feb 2014 13:56:12 +0000 (14:56 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Feb 2014 13:56:12 +0000 (14:56 +0100)
commit83e49ade5724f5b3744660e45179461fe2a1b0f8
tree1f819a54cf2eb2955bea016c4906f70b99c1c20a
parent6f068904dc142657bb596f91196f9113f1838cbe
grep: fix -w match if first match isn't a word, but second is. Closes 4520

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