summaryrefslogtreecommitdiff
path: root/usr.bin/grep
AgeCommit message (Expand)Author
2010-07-02Remove the "fast" grep code if SMALL. This has the side effect of breakingTed Unangst
2010-07-02Do not include mmap support with -DSMALL.Nicholas Marriott
2010-04-25prevent out-of-bounds access with empty pattern (fixes "grep -x ''")Eric Faurot
2010-04-20Fix "grep -e foo -w" crash. The problem lies in 'e' getopt clauseJacek Masiulaniec
2010-04-05make this page read a little better;Jason McIntyre
2010-04-05remove some non-POSIX standard non-GNU defacto standard options, mostlyTed Unangst
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
2008-10-16two globals not needed in NOZ modeTheo de Raadt
2007-10-02Process patterns containing $ end ^ (but not as last or first char)Otto Moerbeek
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
2007-02-13- Be explicit on command line checking, instead of relying on patterns,Matthias Kilian
2006-12-26fts_read returning NULL and errno set is an error. ok ray@Otto Moerbeek
2006-11-17Reset the number of lines of tail context left to printJared Yanovich
2006-11-02Check length before checking index of len - 1.Ray Lai
2006-09-26Allow zero-length patterns with -x soJared Yanovich
2006-09-20That should be S_ISREG, dunno why I committed this wrong version;Otto Moerbeek
2006-09-19Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
2006-03-07Break patterns containing newlines into multiple patterns like POSIX says.Otto Moerbeek
2006-03-07-nv is a valid combination; confirmed by ottoJason McIntyre
2006-02-09delint; remove redundant vars and functions; ok jaredy@Otto Moerbeek
2006-02-07restore cosmic balance by plugging a mem leak; problem reported byOtto Moerbeek
2005-06-05s/-p1003.1-2003/-p1003.1-2004/gJason McIntyre
2005-04-25- use size_t where appropriate.Otto Moerbeek
2005-04-03Make the processing of patterns collected from files specified by -fJared Yanovich
2005-04-03Protect begin and end of word markers added to the pattern whenOtto Moerbeek
2005-02-07Due to a braindead zlib, the test for seekability of a gzstream usingOtto Moerbeek
2005-02-02replace 0 with STDIN_FILENO. from han boetes and jared yanovichTed Unangst
2005-01-06clarify what -a does;Jason McIntyre
2004-10-04remove the section on extended regular expressions, and pointJason McIntyre
2004-10-03Remove block based mmap optimization. There are newline problemsOtto Moerbeek
2004-09-28when stdin is searched, -L and -l print `(standard input)', not `-';Jason McIntyre
2004-09-28various fixes to make this page a bit clearer and hopefully a bitJason McIntyre
2004-09-16unused variables; otto okTheo de Raadt
2004-09-15cast offset value correctly for gzseekTheo de Raadt
2004-08-11Stop search when -q option is given and a match is found. Found by jmc@Otto Moerbeek
2004-08-05spacingTheo de Raadt
2004-05-07Make grep -w behave the same for the fastcomp and the regex case,Otto Moerbeek
2004-05-07Add a new past path for fgrep that is just a simplified version ofTodd C. Miller
2004-05-06Don't fseek() on stdin if it is a terminal. It does not fail, butOtto Moerbeek
2004-05-06Treat ^H as non-binary. OK hshoexer@, brad@ and deraadt@Todd C. Miller
2004-04-17-w uses [[:<:]] and [[:>:]], not \< and \>,Jason McIntyre
2004-04-03remove unnecessary .Sm macros (oops, this is my fault it everJason McIntyre
2004-04-02Document --line-bufferedOtto Moerbeek
2004-04-02Implement --line-bufferedOtto Moerbeek
2004-03-15simpler special character list. provoked by Patrick Latifi ok jmc@Ted Unangst
2004-02-04Fix anchors (^ or $) in -w mode broken by the last commit's -w overhaul.Todd C. Miller
2004-01-26dataLen should be size_t to match l->len; ok otto@ tedu@Todd C. Miller
2004-01-25Previously, in -w mode, for each match on a line grep would checkTodd C. Miller