diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-25 21:36:01 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-01-25 21:36:01 +0000 |
commit | 87fcaaa7c3c1c0c0dd898f12de2d379baafb0ed1 (patch) | |
tree | c73dc31f440b3c08e0564898d8c004b236de23a8 /games/pom/Makefile | |
parent | 6451aa97207663c0fae475e74fed893c6d313f45 (diff) |
Previously, in -w mode, for each match on a line grep would check
to see if the match was on a word boundary. However, this missed
lines where the first match was not on a word boundary but a
subsequent match was. Problem originally spotted by miod@
We fix this by using the [[:<:]] and [[:>:]] character classes for
the slow path and by checking the word boundaries in grep_search()
for the fast path instead of doing the checks after running
regexec() or grep_search().
With this change, grep passes the new regress tests 15 and 16.
problem originally spotted by espie@.
Diffstat (limited to 'games/pom/Makefile')
0 files changed, 0 insertions, 0 deletions