summaryrefslogtreecommitdiff
path: root/findutils/grep.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-021-1/+1
| | | | and eventual platform specific includes in early.
* Change llist_add_* to take the address of the list rather than returning the newRob Landley2006-05-261-2/+2
| | | | head, and change all the callers.
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* make grep faster (close bug 758), reduce small memory leak in ↵"Vladimir N. Oleynik"2006-02-281-16/+62
| | | | CONFIG_FEATURE_CLEANUP mode
* - new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"2005-10-141-2/+2
| | | | | - 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
* - replace variables by defines to save spaceBernhard Reutner-Fischer2005-09-231-71/+57
| | | | | - rename string denoting stdin from "-" to "(standard input)" to match GNU grep.
* SUSv3 -q compatibily exit status correction for grep again"Vladimir N. Oleynik"2005-09-231-2/+4
|
* SUSv3 -q compatibily exit status correction for grep"Vladimir N. Oleynik"2005-09-231-3/+3
|
* grep must have exit code >1 if input file not found. Small indent correcion ↵"Vladimir N. Oleynik"2005-09-231-2/+6
| | | | also.
* split libbb: moved xregcomp separatelly for speed up recompile"Vladimir N. Oleynik"2005-09-141-1/+1
|
* removed strange extern void xregcomp(... from some applets, but declared ↵"Vladimir N. Oleynik"2005-09-141-2/+0
| | | | from libbb.h
* 1) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"2005-09-051-2/+2
| | | | | 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
* patch by srowe in Bug 359 to fix fgrep aliasingMike Frysinger2005-07-311-0/+5
|
* In Bug 78, shortkey points out:Mike Frysinger2005-04-161-2/+2
| | | | | | 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.
* Hiroshi Ito writes:Eric Andersen2004-10-081-4/+4
| | | | | | | | | | | | | | | | | | | | 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
* Make the grep option values a bit less horribleEric Andersen2004-05-261-18/+18
|
* Rick Richardson writes:Eric Andersen2004-05-261-8/+16
| | | | | | | | | | | 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
* Patch from vodz to correct 'grep -e pattern1 -e pattern2' logicEric Andersen2004-05-261-5/+3
|
* Larry Doolittle writes:Eric Andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-4/+4
|
* last_patch89 from vodz:Eric Andersen2003-06-201-176/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix segfault when cleaning upGlenn L McGrath2003-04-271-1/+1
|
* grep -f support, adds only 60 Bytes, but regex's now compiled asGlenn L McGrath2003-04-271-27/+48
| | | | required, rather than being pre-compiled.
* Major coreutils update.Manuel Novoa III2003-03-191-13/+11
|
* Change if(x)free(x); to free(x);Aaron Lehmann2002-11-281-4/+2
|
* * findutils/grep.c (grep_main): Remove unnecessary use of junk.Matt Kraai2002-02-221-3/+2
|
* Fix undeclared variable error.Matt Kraai2001-11-201-1/+1
|
* Usr get_last_path_component() name basename()Eric Andersen2001-11-201-1/+2
|
* oopsEric Andersen2001-11-191-2/+2
|
* More scrubbingEric Andersen2001-11-191-4/+4
|
* Fixup CLEANUP behaviorEric Andersen2001-11-191-1/+1
|
* Convert strdup call to xstrdup, and calloc calls to xcalloc (patch fromMatt Kraai2001-11-121-3/+3
| | | | Steve Merrifield).
* Add in grep -E supportEric Andersen2001-11-101-0/+8
|
* Make egrep only set REG_EXTENDED flag.Matt Kraai2001-10-311-1/+0
|
* Patch from Charles Steinkuehler <charles@steinkuehler.net>Eric Andersen2001-10-311-0/+1
| | | | to properly handle extended regexps for egrep
* Use extended regular expressions when invoked as egrep (noted and initialMatt Kraai2001-10-291-0/+5
| | | | patch by Charles Steinkuehler).
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-18/+18
| | | | -Erik
* Scrub up some function prototypes.Eric Andersen2001-10-181-1/+0
| | | | -Erik
* Fix behavior of grep -lc to match GNU grep. SuS2 is ambiguousEric Andersen2001-07-311-1/+4
| | | | | on the correct behavior, so acting like GNU grep seems best -Erik
* grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong.Eric Andersen2001-05-291-2/+2
|
* Added support for grep -e and grep -f, closes bug #1164. Also added someMark Whitley2001-05-241-95/+142
| | | | testcases for these new features.
* Fixed extra -- lines (noted by Christophe Boyanique).Matt Kraai2001-05-221-1/+2
|
* Fixed mishandling of -c & -l options and accounted for case when we'reMark Whitley2001-05-211-7/+16
| | | | grepping only one file.
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai2001-05-161-1/+1
| | | | by Larry Doolittle.
* Fixed a subtle bug in the handling of -l and -c flags.Mark Whitley2001-05-141-19/+19
|
* The tiniest of bracket-placement fixes.Mark Whitley2001-04-171-5/+2
|
* Make 'grep -l' workEric Andersen2001-04-091-5/+16
|
* Fixed option parsing. Grep would continue grepping, even when given a bad /Mark Whitley2001-04-091-0/+2
| | | | invalid option. Closes bug #1146.
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-1/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Implemented -A, -B, and -C flags with BB_FEATURE_GREP_CONTEXT option set.Mark Whitley2001-02-091-14/+125
|