Age | Commit message (Collapse) | Author | |
---|---|---|---|
2004-10-04 | remove the section on extended regular expressions, and point | Jason McIntyre | |
people instead to re_format.7: there is now a list of EREs there; | |||
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-28 | when stdin is searched, -L and -l print `(standard input)', not `-'; | Jason McIntyre | |
from alexander taler (pr #3937); | |||
2004-09-28 | various fixes to make this page a bit clearer and hopefully a bit | Jason McIntyre | |
more helpful; this includes some ideas/fixes from otto and jared; | |||
2004-09-16 | unused variables; otto ok | Theo de Raadt | |
2004-09-15 | cast offset value correctly for gzseek | 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-08-05 | spacing | Theo de Raadt | |
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-05-06 | Don't fseek() on stdin if it is a terminal. It does not fail, but | Otto Moerbeek | |
what's more more important, it does not work either. ok millert@ tedu@ | |||
2004-05-06 | Treat ^H as non-binary. OK hshoexer@, brad@ and deraadt@ | Todd C. Miller | |
2004-04-17 | -w uses [[:<:]] and [[:>:]], not \< and \>, | Jason McIntyre | |
and it's documented in re_format(7), not ex(1); from jared yanovich; ok beck@ | |||
2004-04-03 | remove unnecessary .Sm macros (oops, this is my fault it ever | Jason McIntyre | |
made it into the tree); | |||
2004-04-02 | Document --line-buffered | Otto Moerbeek | |
ok jmc@ | |||
2004-04-02 | Implement --line-buffered | Otto Moerbeek | |
ok millert@ tedu@ | |||
2004-03-15 | simpler special character list. provoked by Patrick Latifi ok jmc@ | Ted Unangst | |
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 | -b reports offsets in bytes. | Otto Moerbeek | |
ok millert@ | |||
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 | Unbreak *grep -w -l. ok millert@ | Otto Moerbeek | |
2004-01-18 | make sure ln.len gets initialized. Okay millert@ | Marc Espie | |
2003-12-29 | fix zgrep failure when the uncompressed file begins with a newline | Can Erkin Acar | |
also, search from the beginning if a stream or compressed file is identified as 'binary'. ok millert@, reported by tedu@, tested by jose@ | |||
2003-12-11 | Sync usage() with SYNOPSIS in grep(1). | Ryan Thomas McBride | |
ok deraadt@ jmc@ | |||
2003-12-11 | Document use of [pattern] without -e, give example of -v with multiple | Ryan Thomas McBride | |
patterns. ok deraadt@ jmc@ | |||
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-10-20 | typos from Jared Yanovich; | Jason McIntyre | |
2003-09-27 | Correct wording on -C option. | Ryan Thomas McBride | |
ok jmc@ | |||
2003-09-18 | make this test look for spaces as well, to match other cases | Bob Beck | |
ok fgs@ ok deraadt@ | |||
2003-09-09 | mmap returns MAP_FAILED on failure. fixes hugh@'s crash. ok deraadt@ | Ted Unangst | |
2003-09-07 | Fix "grep -number" support for multi-digit numbers. At issue is | Todd C. Miller | |
the fact that optind refers to the *next* argument to be consumed by getopt(), not the current one. This means we have to keep track of when we are working with a new argv entry by hand. OK hugh@ | |||
2003-09-07 | extend ascii test for more accuracy. ok deraadt@ pb@ | Ted Unangst | |
2003-08-20 | Add curly braces {} to the list of special characters in egrep mode. | Todd C. Miller | |
From Piotr Domagalski, closes PR 3405 | |||
2003-08-11 | typo, pr3396 from piotr domagalski | Ted Unangst | |
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-17 | Make it clear what -C does w/o having to read the description of -A/-B. | Todd C. Miller | |
Lack of clarity pointed out by Sam Smith, different fix suggested by jmc@ | |||
2003-07-16 | When reallocing pattern, use sizeof(*pattern) not sizeof(int). | Todd C. Miller | |
Fixes a problem on sparc64 where sizeof(int) != sizeof(pointer). Based on a patch from Brian Poole; tedu@ OK | |||
2003-07-15 | - .Ql Li -> .Ql (Ql already provides literal font) | Jason McIntyre | |
- remove a .Pp | |||
2003-07-14 | range-check numeric arguments (-num, -A num, -B num) | 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-10 | knf | Theo de Raadt | |
2003-07-10 | Fix parsing of -NUMBER. We now do things a digit at a time and | Todd C. Miller | |
keep track of what the last char from getopt was as well as the previous value of optind so we know when a new number has started. | |||
2003-07-06 | no need to redefine strlcpy here; millert@ ok | Anil Madhavapeddy | |
2003-07-02 | protos | Theo de Raadt | |
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@. |