[PATCH] grep: Don't bail out on first mismatch if '-w' option is set

Michael Tokarev mjt at tls.msk.ru
Tue May 14 21:15:11 UTC 2013


15.05.2013 01:01, Bartosz Golaszewski wrote:
> This fixes bug 4520: 'grep -w fails when pattern is a strict substring
> of a word'. If '-w' option is set - grep will retry to match against
> the rest of the string after it finds a match not enclosed by delimiting
> symbols.

It's been fixed by

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

    grep: fix grep -Fw not respecting the -w option. Closes 5792

Apparently 4520 should have been fixed too at that time.

Thanks,

/mjt


More information about the busybox mailing list