aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
AgeCommit message (Collapse)Author
2007-02-25grep: "implement" -a and -I by ignoring themDenis Vlasenko
2007-02-25grep: implement -wDenis Vlasenko
2007-02-25ash: replace xstrdup (shell shall not die)Denis Vlasenko
grep: fix mis-indented block
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2006-12-22remove useless casts (type*) xzalloc(...)Denis Vlasenko
2006-10-27recursive_action: add depth paramDenis Vlasenko
chmod: match coreutils versus following links
2006-10-26rename functions to more understandable namesDenis Vlasenko
2006-10-22grep: "grep -h pattern file1 file2" ignored -hDenis Vlasenko
(precluded kernel's "make modules")
2006-10-15grep: -r didn't close files, producing "Too many open files"Denis Vlasenko
2006-10-14grep: fix combination of -r and -hDenis Vlasenko
2006-10-14grep: add support for -rDenis Vlasenko
2006-10-12bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko
Renaming...
2006-10-03bb_applet_name -> applet_nameDenis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
2006-10-03lots of silly indent fixesDenis Vlasenko
2006-09-29grep: add help text; fix styleDenis Vlasenko
2006-09-29grep: implement -o option. Patch by Jac Goudsmit.Denis Vlasenko
2006-09-25fix 'grep -C' which requires an argumentEric Andersen
2006-09-13- fix copy'n paste errors that got introduced when switching to the shorter ↵Bernhard Reutner-Fischer
boilerplate. No object code changes.
2006-08-03Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley
were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-06-07- reuse strings and messages. Saves about 600BBernhard Reutner-Fischer
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-05-26Change llist_add_* to take the address of the list rather than returning the newRob Landley
head, and change all the callers.
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-02-28make grep faster (close bug 758), reduce small memory leak in ↵"Vladimir N. Oleynik"
CONFIG_FEATURE_CLEANUP mode
2005-10-14- new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"
- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet
2005-09-23- replace variables by defines to save spaceBernhard Reutner-Fischer
- rename string denoting stdin from "-" to "(standard input)" to match GNU grep.
2005-09-23SUSv3 -q compatibily exit status correction for grep again"Vladimir N. Oleynik"
2005-09-23SUSv3 -q compatibily exit status correction for grep"Vladimir N. Oleynik"
2005-09-23grep must have exit code >1 if input file not found. Small indent correcion ↵"Vladimir N. Oleynik"
also.
2005-09-14split libbb: moved xregcomp separatelly for speed up recompile"Vladimir N. Oleynik"
2005-09-14removed strange extern void xregcomp(... from some applets, but declared ↵"Vladimir N. Oleynik"
from libbb.h
2005-09-051) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"
2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2005-07-31patch by srowe in Bug 359 to fix fgrep aliasingMike Frysinger
2005-04-16In Bug 78, shortkey points out:Mike Frysinger
If you run `grep -h . file1 file2 file3 ...`, the output is not prefixed with the filename. If you run `grep -h . file1` however, the filename will incorrectly prefix the output.
2004-10-08Hiroshi Ito writes:Eric Andersen
Hello I'm using busy box on mipsel machine. "grep -f file" will cause segmentation fault. Vladimir N. Oleynik writes: Hiroshi, Thank for bug report, but your patch is full broken. Worked patch attached. (really changes is zero initialize, and indent correcting). --w vodz
2004-05-26Make the grep option values a bit less horribleEric Andersen
2004-05-26Rick Richardson writes:Eric Andersen
Here is a patch that adds egrep -L support (the opposite of egrep -l). I realize this is probably too late for 1.0. But I offer it for your future consideration. egrep -L is used in some networking startup scripts I inherited. -Rick
2004-05-26Patch from vodz to correct 'grep -e pattern1 -e pattern2' logicEric Andersen
2004-04-14Larry Doolittle writes:Eric Andersen
This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-06-20last_patch89 from vodz:Eric Andersen
Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
2003-04-27Fix segfault when cleaning upGlenn L McGrath
2003-04-27grep -f support, adds only 60 Bytes, but regex's now compiled asGlenn L McGrath
required, rather than being pre-compiled.
2003-03-19Major coreutils update.Manuel Novoa III
2002-11-28Change if(x)free(x); to free(x);Aaron Lehmann
2002-02-22* findutils/grep.c (grep_main): Remove unnecessary use of junk.Matt Kraai
2001-11-20Fix undeclared variable error.Matt Kraai
2001-11-20Usr get_last_path_component() name basename()Eric Andersen