aboutsummaryrefslogtreecommitdiff
path: root/findutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-203-3/+3
| | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-143-3/+3
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Implemented -A, -B, and -C flags with BB_FEATURE_GREP_CONTEXT option set.markw2001-02-091-14/+125
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1762 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reworked find with David Douthitt to support -type, -perm, -mtime, andkraai2001-02-071-56/+144
| | | | | | | other improvements. git-svn-id: svn://busybox.net/trunk/busybox@1756 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Tightened things up a bit, saved 20 bytes, and made the code a bit clearer inmarkw2001-02-011-29/+14
| | | | | | | the process. git-svn-id: svn://busybox.net/trunk/busybox@1738 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix wget error message and add (and use) chomp library function.kraai2001-02-012-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up copyright msgs. Bump version to 0.49 in preparation forandersen2001-01-274-4/+4
| | | | | | | | a release. Update the website with release details. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-01-273-0/+6
| | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea tokraai2001-01-181-2/+2
| | | | | | | Vladimir N. Oleynik. git-svn-id: svn://busybox.net/trunk/busybox@1616 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed email address to codepoet.org, updated list of applets / docs Imarkw2001-01-042-2/+2
| | | | | | | maintain in AUTHORS. git-svn-id: svn://busybox.net/trunk/busybox@1537 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed -qv interaction (thanks to a report and patch from David Douthitt).kraai2001-01-041-0/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1534 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use busybox error handling functions wherever possible.kraai2000-12-221-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-072-2/+2
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-011-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed return status (thanks to David Douthitt for the fix).kraai2000-11-181-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1335 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Brand new version of xargs. Tested thoroughly by Kent Robotti. (Domo arigato,markw2000-11-141-112/+61
| | | | | | | Mr. Robotti...) Closes bug #1065. git-svn-id: svn://busybox.net/trunk/busybox@1301 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of ^$ by removing the newline from input lines and by notkraai2000-10-131-2/+4
| | | | | | | compiling with REG_NEWLINE. git-svn-id: svn://busybox.net/trunk/busybox@1190 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yet more polish (thanks again to kent robotti for the bug reports).andersen2000-09-261-10/+12
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1125 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some more polish to make xargs act like GNU xargs (thanks to kent robottiandersen2000-09-251-5/+6
| | | | | | | | <robotti@metconnect.com> for testing and pointing out the differences) -Erik git-svn-id: svn://busybox.net/trunk/busybox@1120 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-254-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Final (I think) version of xargs. Throw away all that tedious stringandersen2000-09-251-94/+62
| | | | | | | | | scrubbing, and quit using system. Instead, use fork() and exec(), which yields and smaller, simpler, and cleaner design. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1116 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be ever so pedantic about escaping chars that the shell might not like...andersen2000-09-251-17/+59
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1115 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up xargs so that things like 'cat cat.c | xargs echo' willandersen2000-09-241-6/+29
| | | | | | | | work properly. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1109 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix xargs option parsingandersen2000-09-241-13/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1108 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix memory problems, and make behavior correct.andersen2000-09-231-5/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1102 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rewrite, so it should be firly clean nowandersen2000-09-231-98/+97
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1099 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use minix xargs instead, and update docs accordinglyandersen2000-09-221-913/+106
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1098 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Comment on xargs choice.andersen2000-09-221-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1097 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in xargsandersen2000-09-221-0/+922
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1096 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Path count was out by one, fixed itbug12000-09-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1064 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify and remove dependence on PATH_MAXbug12000-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. git-svn-id: svn://busybox.net/trunk/busybox@1063 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofkraai2000-09-131-1/+1
| | | | | | | segfaulting or handling errors the same way themselves. git-svn-id: svn://busybox.net/trunk/busybox@1039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-101-1/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Exit with the appropriate value when grepping multiple files.kraai2000-08-061-4/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@943 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Centralize handling of --help.kraai2000-07-191-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolodated some common code into print_matched_line to make 'grep_file' amarkw2000-07-181-10/+11
| | | | | | | little more terse & clean. Also made a few minor formatting changes. git-svn-id: svn://busybox.net/trunk/busybox@875 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for the -c (count matches) option. Made it so it works just likemarkw2000-07-181-3/+22
| | | | | | | GNU grep. git-svn-id: svn://busybox.net/trunk/busybox@873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-163-34/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Don't use strings directly in calls to usage(). This is in preparationkraai2000-07-141-7/+8
| | | | | | | for their extraction to a separate file. git-svn-id: svn://busybox.net/trunk/busybox@863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cmarkw2000-07-121-2/+1
| | | | | | | (maybe I'll remove it later). git-svn-id: svn://busybox.net/trunk/busybox@833 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Matt Kraai which does the following:markw2000-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 git-svn-id: svn://busybox.net/trunk/busybox@812 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed unnecessary #include "regexp.h" line from find.c as per Matt Kraai'smarkw2000-07-101-1/+0
| | | | | | | suggestion on the mailing list. git-svn-id: svn://busybox.net/trunk/busybox@800 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Matt Kraai as per his email:markw2000-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. git-svn-id: svn://busybox.net/trunk/busybox@796 69ca8d6d-28ef-0310-b511-8ec308f3f277
* include getopt.handersen2000-07-091-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@793 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some cosmetic updates. Changed "OPTIONS" to "Options".andersen2000-07-041-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed comment.markw2000-06-281-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@724 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for reading from stdin with '-' as file name arg.markw2000-06-281-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@723 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yanked out the cstring_alloc() and cstring_lineFromFile() functions frommarkw2000-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. git-svn-id: svn://busybox.net/trunk/busybox@722 69ca8d6d-28ef-0310-b511-8ec308f3f277