Age | Commit message (Collapse) | Author | |
---|---|---|---|
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@. | |||
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 | Function prototypes that take no args should have (void) as the parameter. | Todd C. Miller | |
2003-06-25 | -pedantic is not useful in a C99 world so kill it. OK deraadt@ | Todd C. Miller | |
2003-06-25 | knf | Theo de Raadt | |
2003-06-25 | backwards args to gzseek | Ted Unangst | |
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 | tweak boolean test to be clear | Ted Unangst | |
2003-06-24 | don't print "Binary file matches" with -q flag. from Sean Farley | Ted Unangst | |
2003-06-24 | clarify operation of -f. spotted by jmc@, new text by James Howard | Ted Unangst | |
2003-06-23 | strncpy -> memcpy per deraadt suggestion. | Ted Unangst | |
also add a note why we can't use strlcpy. | |||
2003-06-23 | go back to using strncpy. for long patterns, strlcpy reads too much | Ted Unangst | |
of a potentially nontermined src. | |||
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 | document two long options without short equivs. | Ted Unangst | |
ok and help jmc@ | |||
2003-06-23 | minor tweaks | Theo de Raadt | |
2003-06-23 | use strlcpy, not strncpy. ok deraadt@ millert@ | Ted Unangst | |
2003-06-23 | spelling | Ted Unangst | |
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 | use __progname instead of progname. ok deraadt | Ted Unangst | |
2003-06-22 | fix usage | Theo de Raadt | |
2003-06-22 | 3 clause UCB license | Todd C. Miller | |
2003-06-22 | proper $OpenBSD$ | Theo de Raadt | |
2003-06-22 | add DPADD | 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 | tweaks by jmc and i | Theo de Raadt | |
2003-06-22 | support z{e,f}grep | Theo de Raadt | |
2003-06-22 | correct fseek() parameters | Theo de Raadt | |
2003-06-22 | install as z[ef]grep too. no /usr/local garbage, because we have proper | Theo de Raadt | |
getopt_long support in libc now | |||
2003-06-22 | freegrep 0.16 | Theo de Raadt | |
2003-06-10 | - section reorder | Jason McIntyre | |
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@ | |||
2003-04-25 | add missing .El's for .Bl macros; | Jason McIntyre | |
2003-03-31 | ascii -> ASCII | Jason McIntyre | |
2003-02-16 | Fix format string bug. I believe this grep is currently not used (in | Chad Loder | |
favor of the GNU version), but it gets fixed anyways. ok mickey@ |