Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | last_patch89 from vodz: | Eric Andersen | 2003-06-20 | 1 | -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 up | Glenn L McGrath | 2003-04-27 | 1 | -1/+1 |
| | |||||
* | grep -f support, adds only 60 Bytes, but regex's now compiled as | Glenn L McGrath | 2003-04-27 | 1 | -27/+48 |
| | | | | required, rather than being pre-compiled. | ||||
* | Major coreutils update. | Manuel Novoa III | 2003-03-19 | 1 | -13/+11 |
| | |||||
* | Change if(x)free(x); to free(x); | Aaron Lehmann | 2002-11-28 | 1 | -4/+2 |
| | |||||
* | * findutils/grep.c (grep_main): Remove unnecessary use of junk. | Matt Kraai | 2002-02-22 | 1 | -3/+2 |
| | |||||
* | Fix undeclared variable error. | Matt Kraai | 2001-11-20 | 1 | -1/+1 |
| | |||||
* | Usr get_last_path_component() name basename() | Eric Andersen | 2001-11-20 | 1 | -1/+2 |
| | |||||
* | oops | Eric Andersen | 2001-11-19 | 1 | -2/+2 |
| | |||||
* | More scrubbing | Eric Andersen | 2001-11-19 | 1 | -4/+4 |
| | |||||
* | Fixup CLEANUP behavior | Eric Andersen | 2001-11-19 | 1 | -1/+1 |
| | |||||
* | Convert strdup call to xstrdup, and calloc calls to xcalloc (patch from | Matt Kraai | 2001-11-12 | 1 | -3/+3 |
| | | | | Steve Merrifield). | ||||
* | Add in grep -E support | Eric Andersen | 2001-11-10 | 1 | -0/+8 |
| | |||||
* | Make egrep only set REG_EXTENDED flag. | Matt Kraai | 2001-10-31 | 1 | -1/+0 |
| | |||||
* | Patch from Charles Steinkuehler <charles@steinkuehler.net> | Eric Andersen | 2001-10-31 | 1 | -0/+1 |
| | | | | to properly handle extended regexps for egrep | ||||
* | Use extended regular expressions when invoked as egrep (noted and initial | Matt Kraai | 2001-10-29 | 1 | -0/+5 |
| | | | | patch by Charles Steinkuehler). | ||||
* | Major rework of the directory structure and the entire build system. | Eric Andersen | 2001-10-24 | 1 | -18/+18 |
| | | | | -Erik | ||||
* | Scrub up some function prototypes. | Eric Andersen | 2001-10-18 | 1 | -1/+0 |
| | | | | -Erik | ||||
* | Fix behavior of grep -lc to match GNU grep. SuS2 is ambiguous | Eric Andersen | 2001-07-31 | 1 | -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 Andersen | 2001-05-29 | 1 | -2/+2 |
| | |||||
* | Added support for grep -e and grep -f, closes bug #1164. Also added some | Mark Whitley | 2001-05-24 | 1 | -95/+142 |
| | | | | testcases for these new features. | ||||
* | Fixed extra -- lines (noted by Christophe Boyanique). | Matt Kraai | 2001-05-22 | 1 | -1/+2 |
| | |||||
* | Fixed mishandling of -c & -l options and accounted for case when we're | Mark Whitley | 2001-05-21 | 1 | -7/+16 |
| | | | | grepping only one file. | ||||
* | Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.c | Matt Kraai | 2001-05-16 | 1 | -1/+1 |
| | | | | by Larry Doolittle. | ||||
* | Fixed a subtle bug in the handling of -l and -c flags. | Mark Whitley | 2001-05-14 | 1 | -19/+19 |
| | |||||
* | The tiniest of bracket-placement fixes. | Mark Whitley | 2001-04-17 | 1 | -5/+2 |
| | |||||
* | Make 'grep -l' work | Eric Andersen | 2001-04-09 | 1 | -5/+16 |
| | |||||
* | Fixed option parsing. Grep would continue grepping, even when given a bad / | Mark Whitley | 2001-04-09 | 1 | -0/+2 |
| | | | | invalid option. Closes bug #1146. | ||||
* | This patch, put together by Manuel Novoa III, is a merge of work | Eric Andersen | 2001-02-14 | 1 | -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 Whitley | 2001-02-09 | 1 | -14/+125 |
| | |||||
* | Tightened things up a bit, saved 20 bytes, and made the code a bit clearer in | Mark Whitley | 2001-02-01 | 1 | -29/+14 |
| | | | | the process. | ||||
* | Fix wget error message and add (and use) chomp library function. | Matt Kraai | 2001-02-01 | 1 | -2/+1 |
| | |||||
* | Fix up copyright msgs. Bump version to 0.49 in preparation for0_49 | Eric Andersen | 2001-01-27 | 1 | -1/+1 |
| | | | | | a release. Update the website with release details. -Erik | ||||
* | Fix header file usage -- there were many unnecessary header files included in | Eric Andersen | 2001-01-27 | 1 | -0/+2 |
| | | | | | | | 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 | ||||
* | Changed email address to codepoet.org, updated list of applets / docs I | Mark Whitley | 2001-01-04 | 1 | -1/+1 |
| | | | | maintain in AUTHORS. | ||||
* | Fixed -qv interaction (thanks to a report and patch from David Douthitt). | Matt Kraai | 2001-01-04 | 1 | -0/+5 |
| | |||||
* | Change calls to error_msg.* and strerror to use perror_msg.*. | Matt Kraai | 2000-12-18 | 1 | -1/+1 |
| | |||||
* | Changed names of functions in utility.c and all affected files, to make | Mark Whitley | 2000-12-07 | 1 | -1/+1 |
| | | | | compliant with the style guide. Everybody rebuild your tags file! | ||||
* | Fix handling of ^$ by removing the newline from input lines and by not | Matt Kraai | 2000-10-13 | 1 | -2/+4 |
| | | | | compiling with REG_NEWLINE. | ||||
* | Renamed "internal.h" to the more sensible "busybox.h". | Eric Andersen | 2000-09-25 | 1 | -1/+1 |
| | | | | -Erik | ||||
* | Exit with the appropriate value when grepping multiple files. | Matt Kraai | 2000-08-06 | 1 | -4/+6 |
| | |||||
* | Centralize handling of --help. | Matt Kraai | 2000-07-19 | 1 | -4/+0 |
| | |||||
* | Consolodated some common code into print_matched_line to make 'grep_file' a | Mark Whitley | 2000-07-18 | 1 | -10/+11 |
| | | | | little more terse & clean. Also made a few minor formatting changes. | ||||
* | Added support for the -c (count matches) option. Made it so it works just like | Mark Whitley | 2000-07-18 | 1 | -3/+22 |
| | | | | GNU grep. | ||||
* | Extract usage information into a separate file. | Matt Kraai | 2000-07-16 | 1 | -15/+0 |
| | |||||
* | Use errorMsg rather than fprintf. | Matt Kraai | 2000-07-14 | 1 | -1/+1 |
| | |||||
* | Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c | Mark Whitley | 2000-07-12 | 1 | -2/+1 |
| | | | | (maybe I'll remove it later). | ||||
* | Applied patch from Matt Kraai which does the following: | Mark Whitley | 2000-07-11 | 1 | -14/+1 |
| | | | | | | | - adds case-insensitive matching in sed s/// epxressions - consolodates common regcomp code in grep & sed into bb_regcomp and put in utility.c - cleans up a bunch of cruft | ||||
* | Applied patch from Matt Kraai as per his email: | Mark Whitley | 2000-07-10 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | However, the case of grep foo$ file didn't work, due to a problem with the flags used in regular expression compilation. The attached patch fixes this problem. ---patch------- Index: grep.c =================================================================== RCS file: /var/cvs/busybox/grep.c,v retrieving revision 1.30 diff -u -r1.30 grep.c --- grep.c 2000/07/04 22:17:01 1.30 +++ grep.c 2000/07/10 08:57:04 @@ -141,8 +141,10 @@ if (argv[optind] == NULL) usage(grep_usage); - /* compile the regular expression */ - reflags = REG_NOSUB; /* we're not going to mess with sub-expressions */ + /* compile the regular expression + * we're not going to mess with sub-expressions, and we need to + * treat newlines right. */ + reflags = REG_NOSUB | REG_NEWLINE; if (ignore_case) reflags |= REG_ICASE; if ((ret = regcomp(®ex, argv[optind], reflags)) != 0) { ---patch------- Thanks, Matt, it works great. | ||||
* | include getopt.h | Eric Andersen | 2000-07-09 | 1 | -1/+1 |
| | | | | -Erik |