summaryrefslogtreecommitdiff
path: root/usr.bin/grep
AgeCommit message (Expand)Author
2019-10-07jmc is a stickler for consistency.Ted Unangst
2019-10-07add --label to usage. thx jmcTed Unangst
2019-10-07two compat features to allow the zstdgrep script to work.Ted Unangst
2019-07-18Delete documentation of --max-count, which is merely an alias ofIngo Schwarze
2019-07-17when combining -o and -b, print the byte offset of the pattern, not line.Ted Unangst
2019-01-31convert fgetln to getline. this improves portability and sets a goodTed Unangst
2019-01-27mmap support was broken in previous submitted diff from lauri tirkkonenTheo de Raadt
2019-01-23rework grep_open to be more careful about directories.Ted Unangst
2017-12-10- add max-count to SYNOPSISJason McIntyre
2017-12-09Add support for the non-standard grep -m extension.Paul Irofti
2017-04-03initialize regmatch_t always, fixes grep -o ""Ted Unangst
2016-08-25when using -o, we may restart a match in the middle of the line.Ted Unangst
2016-04-04Reverse search optimization makes no sense (and doesn't work) ifOtto Moerbeek
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
2015-12-22cast toupper's argument to unsigned charmmcc
2015-12-22The loop index in grep_cmp() should be size_t to match the type ofTodd C. Miller
2015-12-14Use long long rather than off_t for line_no to ensure that it's alwaysmmcc
2015-12-07Represent line numbers with off_t rather than int. This preventsmmcc
2015-11-28fix exit status on pledge(2) error, where it should be >1Gleydson Soares
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-03grep only opens files read-only, reads via stdio or other methods, performsTheo de Raadt
2015-08-27use strtonum to parse the number of lines of context.David Gwynne
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