summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep (follow)
Commit message (Expand)AuthorAgeFilesLines
* zlib functions take a gzFile not gzFile * (gzFile is already a pointer).millert2021-03-103-7/+7
* Change line counter from int to unsigned long long to reduce overflow.martijn2020-07-232-8/+12
* With -R and an implicit ".", don't prepend file paths with "./"jca2019-12-032-10/+14
* Document implicit "." default file for -Rkn2019-12-031-2/+7
* With -R assume that "." was passed instead of printing a warningjca2019-12-021-3/+7
* jmc is a stickler for consistency.tedu2019-10-071-3/+3
* add --label to usage. thx jmctedu2019-10-071-2/+2
* two compat features to allow the zstdgrep script to work.tedu2019-10-074-6/+25
* Delete documentation of --max-count, which is merely an alias ofschwarze2019-07-182-6/+5
* when combining -o and -b, print the byte offset of the pattern, not line.tedu2019-07-172-6/+9
* convert fgetln to getline. this improves portability and sets a goodtedu2019-01-312-11/+19
* mmap support was broken in previous submitted diff from lauri tirkkonenderaadt2019-01-271-1/+2
* rework grep_open to be more careful about directories.tedu2019-01-235-64/+53
* - add max-count to SYNOPSISjmc2017-12-102-19/+14
* Add support for the non-standard grep -m extension.pirofti2017-12-094-12/+43
* initialize regmatch_t always, fixes grep -o ""tedu2017-04-031-2/+2
* when using -o, we may restart a match in the middle of the line.tedu2016-08-251-5/+14
* Reverse search optimization makes no sense (and doesn't work) ifotto2016-04-041-2/+2
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-7/+1
* cast toupper's argument to unsigned charmmcc2015-12-221-2/+2
* The loop index in grep_cmp() should be size_t to match the type ofmillert2015-12-221-11/+11
* Use long long rather than off_t for line_no to ensure that it's alwaysmmcc2015-12-142-4/+4
* Represent line numbers with off_t rather than int. This preventsmmcc2015-12-072-4/+4
* fix exit status on pledge(2) error, where it should be >1gsoares2015-11-281-2/+2
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
* grep only opens files read-only, reads via stdio or other methods, performsderaadt2015-10-031-1/+4
* use strtonum to parse the number of lines of context.dlg2015-08-271-10/+9
* Put fts_close() where missing.uebayasi2015-06-251-2/+2
* Add warning when user specifies -R but no files, like GNU grep.millert2015-04-301-1/+3
* Don't include limits.h or sys/limits.h since grep.h already does itmillert2015-03-162-4/+2
* Include limits.h, not sys/limits.h and include stdint.h for SIZE_MAX.millert2015-03-161-2/+3
* SIZE_MAX is standard, we should be using it in preference to themillert2015-02-061-2/+2
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-163-9/+5
* An article on medium.com highlighted that grepdaniel2015-01-131-3/+3
* 1. They're flags, not counters. Set to one instead of incrementing.tedu2015-01-102-23/+15
* use reallocarray()deraadt2014-12-013-5/+15
* Prefer setvbuf() to setlinebuf() for portability; ok deraadt@millert2014-11-261-2/+2
* Make option string/struct const (since it is...). I've had thismillert2014-11-261-4/+4
* Check the mode flag being passed in to mmopen() instead of ignoring it.brad2014-11-081-3/+3
* Use errc/warnc to simplify code.guenther2014-05-201-2/+2
* unsigned char casts for ctypederaadt2013-11-262-5/+5
* simple prototype repairsderaadt2013-11-121-2/+2
* blacklist a select few characters instead of a limited whitelist fortedu2013-05-041-11/+21
* remove uesless Pp;jmc2013-01-171-3/+2
* Fix exit status when there is an error reading a file.millert2012-12-293-6/+10
* Don't print zero length matches in -o mode. Found by otto@ whomillert2012-12-121-2/+2
* use proper eol offset for -o matching; spotted by ajacoutot@; ok millert@otto2012-12-111-2/+2
* Fix an integer overflow for very long lines by replacing the datatype of 2 offsets from int to regoff_t.aschrijver2011-07-171-3/+9
* Fix spacingaschrijver2011-07-171-4/+4
* the matchall magic shortcut requires we set c=1 to print nowtedu2011-07-111-1/+2