Age | Commit message (Collapse) | Author | |
---|---|---|---|
2006-02-09 | delint; remove redundant vars and functions; ok jaredy@ | Otto Moerbeek | |
2005-04-03 | Protect begin and end of word markers added to the pattern when | Otto Moerbeek | |
using the -w option with parentheses, to avoid operators in the expressions binding to the markers. Compare [[:<:]]foo|bar[[:>:]] and [[:<:]](foo|bar)[[:>:]]. Problem spotted by aaron@; ok millert@ aaron@ jaredy@ | |||
2004-10-03 | Remove block based mmap optimization. There are newline problems | Otto Moerbeek | |
(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@ | |||
2004-09-16 | unused variables; otto ok | Theo de Raadt | |
2004-08-11 | Stop search when -q option is given and a match is found. Found by jmc@ | Otto Moerbeek | |
ok millert@ | |||
2004-05-07 | Make grep -w behave the same for the fastcomp and the regex case, | Otto Moerbeek | |
by teaching fastcomp what word boundaries are according to regex. ok millert@ | |||
2004-05-07 | Add a new past path for fgrep that is just a simplified version of | Todd C. Miller | |
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@ | |||
2004-02-04 | Fix anchors (^ or $) in -w mode broken by the last commit's -w overhaul. | Todd C. Miller | |
With this change we pass the updated regress. Tested and OK by ho@ | |||
2004-01-26 | dataLen should be size_t to match l->len; ok otto@ tedu@ | Todd C. Miller | |
2004-01-25 | Previously, in -w mode, for each match on a line grep would check | Todd C. Miller | |
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@. | |||
2004-01-19 | Use off_t for file sizes, and don't forget to print a ':' when using | Otto Moerbeek | |
the -b option. ok millert@ | |||
2004-01-18 | make sure ln.len gets initialized. Okay millert@ | Marc Espie | |
2003-12-06 | Unbreak grepping for some patterns containing multiple dots. Fixes PR 3597. | Otto Moerbeek | |
ok deraadt@ millert@ | |||
2003-10-28 | prototype declared static, but function was not. add static to function. | Anil Madhavapeddy | |
millert@ otto@ ok | |||
2003-07-20 | After some discussion on icb it seems a do {} while is what we want | Todd C. Miller | |
after all since there's no need to check an invariant the first time through. I've fixed the loop invariants (we need to take special care with the "j == fg->patternLen" case) and hopefully made things a tad bit clearer. tedu@ OK | |||
2003-07-20 | Close PR 3358 by changing the loop from do {} while -> for; tdeval@ OK | Todd C. Miller | |
2003-07-10 | restore grep -v semantics, print lines that don't match any (mismatch all) | Daniel Hartmeier | |
patterns. ok tedu@, millert@ | |||
2003-07-10 | grep should exit(2) on error, not exit(1) (1 means no matches found). | Todd C. Miller | |
deraadt@ OK | |||
2003-07-06 | no need to redefine strlcpy here; millert@ ok | Anil Madhavapeddy | |
2003-07-01 | Fix bounds check in the fast grep code that caused an incorrect | Todd C. Miller | |
array access (and a core dump on sparc64 at least). Noticed by sturm@ and pvalchev@. Fix tested an OK by pvalchev@. | |||
2003-06-25 | o remove useless cast to int from gzread() call | Todd C. Miller | |
o maxPatternLen should be size_t since that's what it is compared against o remove useless casts of NULL to various pointer types | |||
2003-06-25 | knf | Theo de Raadt | |
2003-06-24 | Make 'grep -w' work; OK tedu@ | Todd C. Miller | |
2003-06-24 | actually do fgrep. -G -F and -E are now mutally exclusive, and override | Ted Unangst | |
the program name as expected. ok millert@ | |||
2003-06-24 | don't print "Binary file matches" with -q flag. from Sean Farley | Ted Unangst | |
2003-06-23 | faster grep for simple patterns. derived from a patch by sean farley. | Ted Unangst | |
this makes searching for constant strings much faster by avoiding regex. ok deraadt@ | |||
2003-06-23 | minor tweaks | Theo de Raadt | |
2003-06-23 | better detetection/handling of binary files. | Ted Unangst | |
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@ | |||
2003-06-22 | proper $OpenBSD$ | Theo de Raadt | |
2003-06-22 | -DNOZ flag to be used by install media for removing z*grep support, if | Theo de Raadt | |
needed. (and knf) | |||
2003-06-22 | freegrep 0.16 | Theo de Raadt | |