Age | Commit message (Collapse) | Author | |
---|---|---|---|
2008-10-16 | two globals not needed in NOZ mode | Theo de Raadt | |
2007-10-02 | Process patterns containing $ end ^ (but not as last or first char) | Otto Moerbeek | |
using regcomp() instead of fastcomp(). ok millert@ | |||
2007-09-02 | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | Theo de Raadt | |
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-05-30 | - use a consistent text for STANDARDS | Jason McIntyre | |
- note which options are extensions to POSIX | |||
2007-02-13 | - Be explicit on command line checking, instead of relying on patterns, | Matthias Kilian | |
which may be NULL (e.g. -e ''). - let add_pattern() decide how to deal with empty patterns, don't do magic in read_patterns(). This unbreaks stuff like grep -e '', and makes grep -f <file> more POSIX compliant. Semantics for grep -f /dev/null (or any other empty file) may be questionable, but this case isn't specified by POSIX, and matching nothing at all seems to be sane. Thanks to otto@, who mentioned potential problems related to the -x option with the first patch i sent. ok jaredy@ (some time ago), otto@, millert@ | |||
2006-12-26 | fts_read returning NULL and errno set is an error. ok ray@ | Otto Moerbeek | |
2006-11-17 | Reset the number of lines of tail context left to print | Jared Yanovich | |
before processing each file to avoid printing lines intended from the previous file. Reported and fix by Charles Longeau <chl@tuxfamily.org> via tech@. ok otto millert | |||
2006-11-02 | Check length before checking index of len - 1. | Ray Lai | |
OK moritz@. | |||
2006-09-26 | Allow zero-length patterns with -x so | Jared Yanovich | |
$ grep -x "" matches empty lines as reported on misc@ by Martin Marusak <marusak@fhpv.unipo.sk>. Initial diff by otto@ with tweaks by me. ok otto | |||
2006-09-20 | That should be S_ISREG, dunno why I committed this wrong version; | Otto Moerbeek | |
spotted by hshoexer@ | |||
2006-09-19 | Use S_IS* macros insted of masking with S_IF* flags. The latter may | Otto Moerbeek | |
have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@ | |||
2006-03-07 | Break patterns containing newlines into multiple patterns like POSIX says. | Otto Moerbeek | |
Report by Ralf dot Wildenhues at gmx dot de; testing by jmc@ ok beck@ millert@ | |||
2006-03-07 | -nv is a valid combination; confirmed by otto | Jason McIntyre | |
2006-02-09 | delint; remove redundant vars and functions; ok jaredy@ | Otto Moerbeek | |
2006-02-07 | restore cosmic balance by plugging a mem leak; problem reported by | Otto Moerbeek | |
Benjamin Pineau in PR 5008; ok weingart@ | |||
2005-06-05 | s/-p1003.1-2003/-p1003.1-2004/g | Jason McIntyre | |
2005-04-25 | - use size_t where appropriate. | Otto Moerbeek | |
- check for <= 0 in gzread; it returns -1 on error. From christos@netbsd; ok millert@ | |||
2005-04-03 | Make the processing of patterns collected from files specified by -f | Jared Yanovich | |
delayed so options that affect pattern-building (such as -w) can be applied evenly to all such patterns. ok and help otto, ok millert | |||
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@ | |||
2005-02-07 | Due to a braindead zlib, the test for seekability of a gzstream using | Otto Moerbeek | |
gzseek(f, 0L, SEEK_CUR) does not work as expected. Instead test the underlying stream and remember that. This repairs echo foo | gzip | zgrep foo. Problem spotted by Han Boetes in PR 4089; ok millert@ | |||
2005-02-02 | replace 0 with STDIN_FILENO. from han boetes and jared yanovich | Ted Unangst | |
2005-01-06 | clarify what -a does; | Jason McIntyre | |
prod and ok deraadt@ | |||
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@ |