aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
AgeCommit message (Collapse)Author
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
2001-11-19oopsEric Andersen
2001-11-19More scrubbingEric Andersen
2001-11-19Fixup CLEANUP behaviorEric Andersen
2001-11-12Convert strdup call to xstrdup, and calloc calls to xcalloc (patch fromMatt Kraai
Steve Merrifield).
2001-11-10Add in grep -E supportEric Andersen
2001-10-31Make egrep only set REG_EXTENDED flag.Matt Kraai
2001-10-31Patch from Charles Steinkuehler <charles@steinkuehler.net>Eric Andersen
to properly handle extended regexps for egrep
2001-10-29Use extended regular expressions when invoked as egrep (noted and initialMatt Kraai
patch by Charles Steinkuehler).
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-10-18Scrub up some function prototypes.Eric Andersen
-Erik
2001-07-31Fix behavior of grep -lc to match GNU grep. SuS2 is ambiguousEric Andersen
on the correct behavior, so acting like GNU grep seems best -Erik
2001-05-29grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong.Eric Andersen
2001-05-24Added support for grep -e and grep -f, closes bug #1164. Also added someMark Whitley
testcases for these new features.
2001-05-22Fixed extra -- lines (noted by Christophe Boyanique).Matt Kraai
2001-05-21Fixed mishandling of -c & -l options and accounted for case when we'reMark Whitley
grepping only one file.
2001-05-16Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai
by Larry Doolittle.
2001-05-14Fixed a subtle bug in the handling of -l and -c flags.Mark Whitley
2001-04-17The tiniest of bracket-placement fixes.Mark Whitley
2001-04-09Make 'grep -l' workEric Andersen
2001-04-09Fixed option parsing. Grep would continue grepping, even when given a bad /Mark Whitley
invalid option. Closes bug #1146.
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-02-09Implemented -A, -B, and -C flags with BB_FEATURE_GREP_CONTEXT option set.Mark Whitley
2001-02-01Tightened things up a bit, saved 20 bytes, and made the code a bit clearer inMark Whitley
the process.
2001-02-01Fix wget error message and add (and use) chomp library function.Matt Kraai
2001-01-27Fix up copyright msgs. Bump version to 0.49 in preparation forEric Andersen
a release. Update the website with release details. -Erik
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
2001-01-04Changed email address to codepoet.org, updated list of applets / docs IMark Whitley
maintain in AUTHORS.
2001-01-04Fixed -qv interaction (thanks to a report and patch from David Douthitt).Matt Kraai
2000-12-18Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-10-13Fix handling of ^$ by removing the newline from input lines and by notMatt Kraai
compiling with REG_NEWLINE.
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-08-06Exit with the appropriate value when grepping multiple files.Matt Kraai
2000-07-19Centralize handling of --help.Matt Kraai
2000-07-18Consolodated some common code into print_matched_line to make 'grep_file' aMark Whitley
little more terse & clean. Also made a few minor formatting changes.
2000-07-18Added support for the -c (count matches) option. Made it so it works just likeMark Whitley
GNU grep.
2000-07-16Extract usage information into a separate file.Matt Kraai
2000-07-14Use errorMsg rather than fprintf.Matt Kraai
2000-07-12Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cMark Whitley
(maybe I'll remove it later).