]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r267693:
authorgjb <gjb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Jun 2014 19:00:11 +0000 (19:00 +0000)
committergjb <gjb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Jun 2014 19:00:11 +0000 (19:00 +0000)
commit370cb6f4fd13228862faf9740b3d6244bdc61e01
tree83ff37c8ddb739b710de08ea28b6f7fe4a93f07e
parent000f221003b253493d2293bd34a1dfa1b47538cf
MFC r267693:
  Fix a bug in bsdgrep(1) where patterns are not correctly
  detected.

  Certain criteria must be met for this bug to show up:

   * the -w flag is specified, and
   * neither -o or --color are specified, and
   * the pattern is part of another word in the line, and
   * the other word that contains the pattern occurs first

PR: 181973
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/9@267879 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/grep/util.c