summaryrefslogtreecommitdiff
path: root/usr.bin/grep/grep.c
AgeCommit message (Collapse)Author
2003-06-24actually do fgrep. -G -F and -E are now mutally exclusive, and overrideTed Unangst
the program name as expected. ok millert@
2003-06-23strncpy -> memcpy per deraadt suggestion.Ted Unangst
also add a note why we can't use strlcpy.
2003-06-23go back to using strncpy. for long patterns, strlcpy reads too muchTed Unangst
of a potentially nontermined src.
2003-06-23faster grep for simple patterns. derived from a patch by sean farley.Ted Unangst
this makes searching for constant strings much faster by avoiding regex. ok deraadt@
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
make -a do the right thing, doc and implement -U, -I. add --help and --mmap for compatibility. some other minor fixes. some from NetBSD. ok deraadt@
2003-06-22use __progname instead of progname. ok deraadtTed Unangst
2003-06-22fix usageTheo de Raadt
2003-06-22proper $OpenBSD$Theo de Raadt
2003-06-22-DNOZ flag to be used by install media for removing z*grep support, ifTheo de Raadt
needed. (and knf)
2003-06-22support z{e,f}grepTheo de Raadt
2003-06-22freegrep 0.16Theo de Raadt
2003-02-16Fix format string bug. I believe this grep is currently not used (inChad Loder
favor of the GNU version), but it gets fixed anyways. ok mickey@
2001-09-21complete grep clone by harding@motd.ca; everything is there, but it isTheo de Raadt
slow because libc regexp is slow. Anyone out there have the balls to sit down and optimize libc regexp?