summaryrefslogtreecommitdiff
path: root/usr.bin/grep
AgeCommit message (Expand)Author
2003-12-29fix zgrep failure when the uncompressed file begins with a newlineCan Erkin Acar
2003-12-11Sync usage() with SYNOPSIS in grep(1).Ryan Thomas McBride
2003-12-11Document use of [pattern] without -e, give example of -v with multipleRyan Thomas McBride
2003-12-06Unbreak grepping for some patterns containing multiple dots. Fixes PR 3597.Otto Moerbeek
2003-10-28prototype declared static, but function was not. add static to function.Anil Madhavapeddy
2003-10-20typos from Jared Yanovich;Jason McIntyre
2003-09-27Correct wording on -C option.Ryan Thomas McBride
2003-09-18make this test look for spaces as well, to match other casesBob Beck
2003-09-09mmap returns MAP_FAILED on failure. fixes hugh@'s crash. ok deraadt@Ted Unangst
2003-09-07Fix "grep -number" support for multi-digit numbers. At issue isTodd C. Miller
2003-09-07extend ascii test for more accuracy. ok deraadt@ pb@Ted Unangst
2003-08-20Add curly braces {} to the list of special characters in egrep mode.Todd C. Miller
2003-08-11typo, pr3396 from piotr domagalskiTed Unangst
2003-07-20After some discussion on icb it seems a do {} while is what we wantTodd C. Miller
2003-07-20Close PR 3358 by changing the loop from do {} while -> for; tdeval@ OKTodd C. Miller
2003-07-17Make it clear what -C does w/o having to read the description of -A/-B.Todd C. Miller
2003-07-16When reallocing pattern, use sizeof(*pattern) not sizeof(int).Todd C. Miller
2003-07-15- .Ql Li -> .Ql (Ql already provides literal font)Jason McIntyre
2003-07-14range-check numeric arguments (-num, -A num, -B num)Todd C. Miller
2003-07-10restore grep -v semantics, print lines that don't match any (mismatch all)Daniel Hartmeier
2003-07-10grep should exit(2) on error, not exit(1) (1 means no matches found).Todd C. Miller
2003-07-10knfTheo de Raadt
2003-07-10Fix parsing of -NUMBER. We now do things a digit at a time andTodd C. Miller
2003-07-06no need to redefine strlcpy here; millert@ okAnil Madhavapeddy
2003-07-02protosTheo de Raadt
2003-07-01Fix bounds check in the fast grep code that caused an incorrectTodd C. Miller
2003-06-25o remove useless cast to int from gzread() callTodd C. Miller
2003-06-25Function prototypes that take no args should have (void) as the parameter.Todd C. Miller
2003-06-25-pedantic is not useful in a C99 world so kill it. OK deraadt@Todd C. Miller
2003-06-25knfTheo de Raadt
2003-06-25backwards args to gzseekTed Unangst
2003-06-24Make 'grep -w' work; OK tedu@Todd C. Miller
2003-06-24actually do fgrep. -G -F and -E are now mutally exclusive, and overrideTed Unangst
2003-06-24tweak boolean test to be clearTed Unangst
2003-06-24don't print "Binary file matches" with -q flag. from Sean FarleyTed Unangst
2003-06-24clarify operation of -f. spotted by jmc@, new text by James HowardTed Unangst
2003-06-23strncpy -> memcpy per deraadt suggestion.Ted Unangst
2003-06-23go back to using strncpy. for long patterns, strlcpy reads too muchTed Unangst
2003-06-23faster grep for simple patterns. derived from a patch by sean farley.Ted Unangst
2003-06-23document two long options without short equivs.Ted Unangst
2003-06-23minor tweaksTheo de Raadt
2003-06-23use strlcpy, not strncpy. ok deraadt@ millert@Ted Unangst
2003-06-23spellingTed Unangst
2003-06-23better detetection/handling of binary files.Ted Unangst
2003-06-22use __progname instead of progname. ok deraadtTed Unangst
2003-06-22fix usageTheo de Raadt
2003-06-223 clause UCB licenseTodd C. Miller
2003-06-22proper $OpenBSD$Theo de Raadt
2003-06-22add DPADDTheo de Raadt
2003-06-22-DNOZ flag to be used by install media for removing z*grep support, ifTheo de Raadt