aboutsummaryrefslogtreecommitdiff
path: root/findutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Path count was out by one, fixed itGlenn L McGrath2000-09-181-1/+1
|
* Simplify and remove dependence on PATH_MAXGlenn L McGrath2000-09-181-31/+12
| | | | | | buf[PATH_MAX] now defined using strlen to the exact size to be used. removed output that was displayed if which didnt find the command, this makes itmatch the behaviour of GNU's which. These modifications result in a slight size decrease.
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai2000-09-131-1/+1
| | | | segfaulting or handling errors the same way themselves.
* Some #include updates.Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Exit with the appropriate value when grepping multiple files.Matt Kraai2000-08-061-4/+6
|
* Centralize handling of --help.Matt Kraai2000-07-191-4/+0
|
* Consolodated some common code into print_matched_line to make 'grep_file' aMark Whitley2000-07-181-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 likeMark Whitley2000-07-181-3/+22
| | | | GNU grep.
* Extract usage information into a separate file.Matt Kraai2000-07-163-34/+0
|
* Don't use strings directly in calls to usage(). This is in preparationMatt Kraai2000-07-141-7/+8
| | | | for their extraction to a separate file.
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-1/+1
|
* Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cMark Whitley2000-07-121-2/+1
| | | | (maybe I'll remove it later).
* Applied patch from Matt Kraai which does the following:Mark Whitley2000-07-111-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
* Removed unnecessary #include "regexp.h" line from find.c as per Matt Kraai'sMark Whitley2000-07-101-1/+0
| | | | suggestion on the mailing list.
* Applied patch from Matt Kraai as per his email:Mark Whitley2000-07-101-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(&regex, argv[optind], reflags)) != 0) { ---patch------- Thanks, Matt, it works great.
* include getopt.hEric Andersen2000-07-091-1/+1
| | | | -Erik
* Some cosmetic updates. Changed "OPTIONS" to "Options".Eric Andersen2000-07-041-1/+1
| | | | -Erik
* Fixed comment.Mark Whitley2000-06-281-2/+2
|
* Added support for reading from stdin with '-' as file name arg.Mark Whitley2000-06-281-1/+1
|
* Yanked out the cstring_alloc() and cstring_lineFromFile() functions fromMark Whitley2000-06-281-31/+0
| | | | | | | utility.c and replaced them with get_line_from_file() from the new grep.c. Also changed declaration in internal.h and replaced instances of cstring_lineFromFile() in dc.c and sort.c with get_line_from_file(). Tested them and they worked fine.
* Brand, spankin', new grep that uses libc regex routines instead of theMark Whitley2000-06-281-100/+155
| | | | | hand-rolled ones. Sed still needs to be replaced and then the regexp stuff can be axed.
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-193-3/+3
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* Fix some spelling errors in the source as well.Eric Andersen2000-06-161-2/+2
| | | | -Erik
* + removed some cruft left over from when lines could be too long.John Beppu2000-06-141-3/+0
|
* Fix a bug pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>Eric Andersen2000-06-131-9/+13
| | | | | | | | where you used to see: ./grep -q -i B some_file B: No such file or directory This is now fixed. -Erik
* + utility.cJohn Beppu2000-06-121-5/+3
| | | | | | | CSTRING_BUFFER_LENGTH = 1024 /* so it recurses less often */ + grep.c uses cstring_lineFromFile(), and doesn't ever say Line is too long, anymore
* "which" rewritten to use stat(). Fixes to improve its compatabilityPavel Roskin2000-06-051-18/+45
| | | | with traditional implementations
* More libc portability updates, add in the website (which has not beenErik Andersen2000-05-191-0/+73
| | | | | archived previously). Wrote 'which' during the meeting today. -Erik
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen2000-05-122-6/+12
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* + grep -v # yay!John Beppu2000-04-241-12/+15
|
* More doc updates for BusyBox, with fixes to apps for bugs revealedErik Andersen2000-04-131-3/+3
| | | | | while trying to write docs . :-) -Erik
* Upates to include copyright 2000 to everythingErik Andersen2000-04-132-2/+2
| | | | -Erik
* Yet another installment in the ongoing tar sagaErik Andersen2000-03-281-2/+2
| | | | -Erik
* More minor touchups.Erik Andersen2000-02-101-7/+1
| | | | -Erik
* Some formatting updates (ran the code through indent)Erik Andersen2000-02-082-160/+164
| | | | -Erik
* A few minor updates. ;-)Erik Andersen2000-02-071-1/+1
| | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik
* Clear up some ambiguity with old style assignments.Erik Andersen2000-01-291-3/+3
| | | | -Erik
* Bug fix. grep wasn't printing file names they way it was supposed to.Erik Andersen2000-01-191-3/+6
| | | | -Erik
* Fixed cp so it works as God intended it to.Erik Andersen1999-12-291-1/+1
| | | | -Erik
* Added grep -q, thanks to a patch from "Konstantin Boldyshev" <konst@voshod.com>Erik Andersen1999-12-211-3/+20
| | | | -Erik
* StufEric Andersen1999-12-031-2/+9
|
* Updates to usage, and made tar work.Eric Andersen1999-11-102-6/+16
| | | | -Erik
* StuffEric Andersen1999-11-091-41/+38
|
* StuffEric Andersen1999-11-081-23/+36
| | | | -Erik
* StufEric Andersen1999-10-282-27/+4
|
* Added regexp support, fixed Changelog.Eric Andersen1999-10-222-47/+22
|
* Fixed up copyright notices and suchEric Andersen1999-10-202-2/+6
|
* Added sfdisk. Ststic-ified a bunch of stuff.Eric Andersen1999-10-191-1/+1
|
* fixes grep, added loadfont from debian bootfloppies.Eric Andersen1999-10-191-95/+58
| | | | -Erik
* More stuff.Eric Andersen1999-10-181-4/+2
| | | | -Erik