summaryrefslogtreecommitdiff
path: root/usr.bin/grep
AgeCommit message (Expand)Author
2015-06-25Put fts_close() where missing.Masao Uebayashi
2015-04-30Add warning when user specifies -R but no files, like GNU grep.Todd C. Miller
2015-03-16Don't include limits.h or sys/limits.h since grep.h already does itTodd C. Miller
2015-03-16Include limits.h, not sys/limits.h and include stdint.h for SIZE_MAX.Todd C. Miller
2015-02-06SIZE_MAX is standard, we should be using it in preference to theTodd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2015-01-13An article on medium.com highlighted that grepDaniel Dickman
2015-01-101. They're flags, not counters. Set to one instead of incrementing.Ted Unangst
2014-12-01use reallocarray()Theo de Raadt
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-11-26Make option string/struct const (since it is...). I've had thisTodd C. Miller
2014-11-08Check the mode flag being passed in to mmopen() instead of ignoring it.Brad Smith
2014-05-20Use errc/warnc to simplify code.Philip Guenther
2013-11-26unsigned char casts for ctypeTheo de Raadt
2013-11-12simple prototype repairsTheo de Raadt
2013-05-04blacklist a select few characters instead of a limited whitelist forTed Unangst
2013-01-17remove uesless Pp;Jason McIntyre
2012-12-29Fix exit status when there is an error reading a file.Todd C. Miller
2012-12-12Don't print zero length matches in -o mode. Found by otto@ whoTodd C. Miller
2012-12-11use proper eol offset for -o matching; spotted by ajacoutot@; ok millert@Otto Moerbeek
2011-07-17Fix an integer overflow for very long lines by replacing the datatype of 2 of...aschrijver
2011-07-17Fix spacingaschrijver
2011-07-11the matchall magic shortcut requires we set c=1 to print nowTed Unangst
2011-07-08add support for -o to only print the match.Ted Unangst
2011-06-20Switch binary file detection from !(isprint() || isspace()) to checkingStefan Sperling
2011-03-04add -H (opposite of -h) to always print name. ok deraadt millertTed Unangst
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
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