Eric Andersen
86f0167e39
grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong.
2001-05-29 22:36:39 +00:00
Mark Whitley
fa43e54b6f
Added support for grep -e and grep -f, closes bug #1164 . Also added some
...
testcases for these new features.
2001-05-24 18:36:18 +00:00
Matt Kraai
edc806507c
Fixed extra -- lines (noted by Christophe Boyanique).
2001-05-22 14:29:27 +00:00
Mark Whitley
1d9d41150b
Fixed mishandling of -c & -l options and accounted for case when we're
...
grepping only one file.
2001-05-21 21:13:00 +00:00
Matt Kraai
59df6f7398
Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.c
...
by Larry Doolittle.
2001-05-16 14:21:09 +00:00
Mark Whitley
35e59bed97
Fixed a subtle bug in the handling of -l and -c flags.
2001-05-14 19:40:32 +00:00
Eric Andersen
8d35134ad8
A bug fix from Vladimir for a memory leak I stupidly
...
added to which.c.
2001-05-07 22:45:06 +00:00
Eric Andersen
044a72d0d5
Larry suggested using concat_path_file() would be an even safer bet
...
for 'which'. I ageed, so I whipped this up -- which revealed a bug in
concat_path_file. It turns out that that a '/' can be appended from
either the path _or_ the filename, but only the former was checked.
-Erik
2001-05-04 22:04:24 +00:00
Eric Andersen
7526f035f4
Fix a buffer overflow. Which accounted for the size of the path, plus the the
...
'/', plus the size of the test command. It did not account for the terminating
NULL, which overwrote the end of the string.
-Erik
2001-05-04 20:47:33 +00:00
Mark Whitley
59a86cad67
The tiniest of bracket-placement fixes.
2001-04-17 17:30:44 +00:00
Eric Andersen
303dd28bb0
Make 'grep -l' work
2001-04-09 23:26:31 +00:00
Mark Whitley
4391a16c92
Fixed option parsing. Grep would continue grepping, even when given a bad /
...
invalid option. Closes bug #1146 .
2001-04-09 23:00:07 +00:00
Mark Whitley
e0a7f917c2
Applied patch from David Douthitt to re-add -print option to find.
...
Closes bug #1144 .
2001-03-28 22:04:42 +00:00
Eric Andersen
6f3240abf9
xstrdup xargs cleanup from Jeff Garzik
2001-03-23 17:11:22 +00:00
Eric Andersen
8d4c397d9d
Patch from Jeff Garzik marking a few 'getopt not needed' apps.
2001-03-09 21:28:09 +00:00
Eric Andersen
cbe31dace5
It turns out that DODMALLOC was broken when I reorganized busybox.h
...
header file usage before the 0.49 release. To fix it, I had to move
the '#include "busybox.h"' to the end of the list of #include files.
-Erik
2001-02-20 06:14:08 +00:00
Eric Andersen
67991cf824
This patch, put together by Manuel Novoa III, is a merge of work
...
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-14 21:23:06 +00:00
Mark Whitley
2fd52989f7
Implemented -A, -B, and -C flags with BB_FEATURE_GREP_CONTEXT option set.
2001-02-09 00:41:10 +00:00
Matt Kraai
096370d349
Reworked find with David Douthitt to support -type, -perm, -mtime, and
...
other improvements.
2001-02-07 03:52:38 +00:00
Mark Whitley
b5c29850e3
Tightened things up a bit, saved 20 bytes, and made the code a bit clearer in
...
the process.
2001-02-01 21:02:41 +00:00
Matt Kraai
05e782ddd3
Fix wget error message and add (and use) chomp library function.
2001-02-01 16:49:30 +00:00
Eric Andersen
8ec10a9483
Fix up copyright msgs. Bump version to 0.49 in preparation for
...
a release. Update the website with release details.
-Erik
2001-01-27 09:33:39 +00:00
Eric Andersen
ed3ef50c23
Fix header file usage -- there were many unnecessary header files included in
...
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-27 08:24:39 +00:00
Matt Kraai
12f417edbd
Eliminate calls of the form "fprintf(stdout,". Thanks for the idea to
...
Vladimir N. Oleynik.
2001-01-18 02:57:08 +00:00
Mark Whitley
6c6ea6cba2
Changed email address to codepoet.org, updated list of applets / docs I
...
maintain in AUTHORS.
2001-01-04 22:21:13 +00:00
Matt Kraai
0810f723b1
Fixed -qv interaction (thanks to a report and patch from David Douthitt).
2001-01-04 15:11:52 +00:00
Matt Kraai
a9819b2908
Use busybox error handling functions wherever possible.
2000-12-22 01:48:07 +00:00
Matt Kraai
1fa1adea2a
Change calls to error_msg.* and strerror to use perror_msg.*.
2000-12-18 03:57:16 +00:00
Mark Whitley
f57c944e09
Changed names of functions in utility.c and all affected files, to make
...
compliant with the style guide. Everybody rebuild your tags file!
2000-12-07 19:56:48 +00:00
Matt Kraai
3e856ce428
Stop using TRUE and FALSE for exit status.
2000-12-01 02:55:13 +00:00
Matt Kraai
768a2340b5
Fixed return status (thanks to David Douthitt for the fix).
2000-11-18 01:16:43 +00:00
Mark Whitley
e2e2c29ea1
Brand new version of xargs. Tested thoroughly by Kent Robotti. (Domo arigato,
...
Mr. Robotti...) Closes bug #1065 .
2000-11-14 22:43:21 +00:00
Matt Kraai
567cdd1d51
Fix handling of ^$ by removing the newline from input lines and by not
...
compiling with REG_NEWLINE.
2000-10-13 18:55:06 +00:00
Eric Andersen
d266748c76
Yet more polish (thanks again to kent robotti for the bug reports).
...
-Erik
2000-09-26 01:00:15 +00:00
Eric Andersen
d89882da16
Some more polish to make xargs act like GNU xargs (thanks to kent robotti
...
<robotti@metconnect.com> for testing and pointing out the differences)
-Erik
2000-09-25 22:53:05 +00:00
Eric Andersen
3570a34de4
Renamed "internal.h" to the more sensible "busybox.h".
...
-Erik
2000-09-25 21:45:58 +00:00
Eric Andersen
e081eae7a4
Final (I think) version of xargs. Throw away all that tedious string
...
scrubbing, and quit using system. Instead, use fork() and exec(), which
yields and smaller, simpler, and cleaner design.
-Erik
2000-09-25 20:23:21 +00:00
Eric Andersen
bf73909f23
Be ever so pedantic about escaping chars that the shell might not like...
2000-09-25 18:41:18 +00:00
Eric Andersen
6f283c2f77
Fix up xargs so that things like 'cat cat.c | xargs echo' will
...
work properly.
-Erik
2000-09-24 02:40:56 +00:00
Eric Andersen
9ae3838657
Fix xargs option parsing
2000-09-24 01:12:54 +00:00
Eric Andersen
96bdde97fb
Fix memory problems, and make behavior correct.
2000-09-23 19:53:31 +00:00
Eric Andersen
a37d5b772b
rewrite, so it should be firly clean now
2000-09-23 06:10:14 +00:00
Eric Andersen
5b17693f0a
Use minix xargs instead, and update docs accordingly
...
-Erik
2000-09-22 20:22:28 +00:00
Eric Andersen
ebc0dd7a8a
Comment on xargs choice.
2000-09-22 20:02:34 +00:00
Eric Andersen
92a61c1206
Add in xargs
2000-09-22 20:01:23 +00:00
Glenn L McGrath
38c8551cf2
Path count was out by one, fixed it
2000-09-18 09:52:03 +00:00
Glenn L McGrath
63dde9d4ce
Simplify and remove dependence on PATH_MAX
...
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.
2000-09-18 09:37:40 +00:00
Matt Kraai
322ae93a5e
Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
...
segfaulting or handling errors the same way themselves.
2000-09-13 02:46:14 +00:00
Eric Andersen
88f50b6bf5
Some #include updates.
...
-Erik
2000-08-10 17:59:11 +00:00
Matt Kraai
deb95f69b6
Exit with the appropriate value when grepping multiple files.
2000-08-06 15:25:53 +00:00