summaryrefslogtreecommitdiff
path: root/usr.bin/grep/grep.c
AgeCommit message (Expand)Author
2011-03-04add -H (opposite of -h) to always print name. ok deraadt millertTed Unangst
2010-07-02Remove the "fast" grep code if SMALL. This has the side effect of breakingTed Unangst
2010-04-20Fix "grep -e foo -w" crash. The problem lies in 'e' getopt clauseJacek Masiulaniec
2010-04-05remove some non-POSIX standard non-GNU defacto standard options, mostlyTed Unangst
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-02-13- Be explicit on command line checking, instead of relying on patterns,Matthias Kilian
2006-11-02Check length before checking index of len - 1.Ray Lai
2006-09-26Allow zero-length patterns with -x soJared Yanovich
2006-03-07Break patterns containing newlines into multiple patterns like POSIX says.Otto Moerbeek
2006-02-09delint; remove redundant vars and functions; ok jaredy@Otto Moerbeek
2005-04-03Make the processing of patterns collected from files specified by -fJared Yanovich
2005-04-03Protect begin and end of word markers added to the pattern whenOtto Moerbeek
2004-10-03Remove block based mmap optimization. There are newline problemsOtto Moerbeek
2004-09-28various fixes to make this page a bit clearer and hopefully a bitJason McIntyre
2004-08-05spacingTheo de Raadt
2004-05-07Add a new past path for fgrep that is just a simplified version ofTodd C. Miller
2004-04-02Implement --line-bufferedOtto Moerbeek
2004-02-04Fix anchors (^ or $) in -w mode broken by the last commit's -w overhaul.Todd C. Miller
2004-01-25Previously, in -w mode, for each match on a line grep would checkTodd C. Miller
2003-12-11Sync usage() with SYNOPSIS in grep(1).Ryan Thomas McBride
2003-09-07Fix "grep -number" support for multi-digit numbers. At issue isTodd C. Miller
2003-07-16When reallocing pattern, use sizeof(*pattern) not sizeof(int).Todd C. Miller
2003-07-14range-check numeric arguments (-num, -A num, -B num)Todd C. Miller
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-06-25o remove useless cast to int from gzread() callTodd C. Miller
2003-06-24actually do fgrep. -G -F and -E are now mutally exclusive, and overrideTed 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-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-22proper $OpenBSD$Theo de Raadt
2003-06-22-DNOZ flag to be used by install media for removing z*grep support, ifTheo de Raadt
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
2001-09-21complete grep clone by harding@motd.ca; everything is there, but it isTheo de Raadt