Age | Commit message (Collapse) | Author |
|
|
|
|
|
(PR 3940, 3941) which can be fixed, but if a match starts at the
end of a block and continues into the next block, no match will be
found. Measurements by millert@ showed that the improvements of
this optimization are non-measurable anyway. Diff from Alexander Taler.
ok millert@
|
|
fastcomp. This makes fgrep faster and fixes the -w flag w/ fgrep.
Also remove free_patterns() since calling free right before exit
is silly. Problem noticed by espie@
|
|
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@.
|
|
the -b option.
ok millert@
|
|
|
|
o maxPatternLen should be size_t since that's what it is compared against
o remove useless casts of NULL to various pointer types
|
|
|
|
the program name as expected. ok millert@
|
|
this makes searching for constant strings much faster by avoiding regex.
ok deraadt@
|
|
make -a do the right thing, doc and implement -U, -I.
add --help and --mmap for compatibility.
some other minor fixes.
some from NetBSD. ok deraadt@
|
|
|
|
|