aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add optional ls file sorting, thanks to a patch fromandersen2000-08-111-0/+86
| | | | | | | | Sterling Huxley <sterling@europa.com> -Erik git-svn-id: svn://busybox.net/trunk/busybox@953 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-109-8/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleaner way to handle -NUM and +NUM, reduces the mem usage as well.andersen2000-08-021-24/+25
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@939 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg().markw2000-08-021-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@936 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Brand, new version of cut. This fixes the bugs in the old cut, is smaller, andmarkw2000-08-021-308/+171
| | | | | | | is a sight easier to understand than the Minix cut. git-svn-id: svn://busybox.net/trunk/busybox@935 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update to the tail rewrite by "Allen Soard" <esp-software@mail.hypermart.net>andersen2000-08-021-74/+93
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@934 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit the rewrite of tail by Allen Soardandersen2000-07-311-1119/+245
| | | | | | | | | <esp-software@mail.hypermart.net>. Thanks Allen for you work at getting this into shape, -Erik git-svn-id: svn://busybox.net/trunk/busybox@923 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed to pass -Wundefproski2000-07-281-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@921 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for a potential uninitialized variable, thx toandersen2000-07-281-0/+1
| | | | | | | | Ken Chalmers <chalmers@norscan.com> -Erik git-svn-id: svn://busybox.net/trunk/busybox@919 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some cleanups, based on a patch from Ken Chalmersandersen2000-07-281-10/+13
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@917 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a syntax error & superfluous param decl that was causing the build tomarkw2000-07-261-1/+1
| | | | | | | fail. git-svn-id: svn://busybox.net/trunk/busybox@911 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some bitrot.andersen2000-07-261-7/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@908 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use BB_FEATURE_CLEAN_UP where appropriateandersen2000-07-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@904 69ca8d6d-28ef-0310-b511-8ec308f3f277
* chroot can now call the builtin shellproski2000-07-241-0/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@899 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Converted option parsing to using getopt(). Also managed to remove anmarkw2000-07-201-17/+17
| | | | | | | | | extraneous logic loop that existed only for the purpose of the special case of only one file. I replaced it with a variable to keep track of the number of files read. git-svn-id: svn://busybox.net/trunk/busybox@886 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Whoops. Forgot to #include <getopt.h>.markw2000-07-201-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@885 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Converted option parsing to getopt() and made some minor formatting changes.markw2000-07-191-18/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@884 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Centralize handling of --help.kraai2000-07-194-12/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add usage messages for applets without them.kraai2000-07-192-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@881 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use FatalError()andersen2000-07-191-4/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@879 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Moved functions used by "lsmod" from cat.c to utility.cproski2000-07-171-15/+1
| | | | | | | | Adjusted to make lsmod and sh compilable as standalone apps. Comment fixes git-svn-id: svn://busybox.net/trunk/busybox@870 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The result of getopt() is "int" and should be treated as suchproski2000-07-173-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@865 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-1640-471/+6
| | | | 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-147-57/+69
| | | | | | | for their extraction to a separate file. git-svn-id: svn://busybox.net/trunk/busybox@863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>andersen2000-07-142-52/+43
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@860 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Getopt'rd by Marc Nijdam <marc_nijdam@hp.com>andersen2000-07-141-21/+11
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@859 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More cleanups.andersen2000-07-143-18/+18
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@853 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix argument parsing.kraai2000-07-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@852 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-1414-43/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix uninitialized variable.andersen2000-07-131-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@839 69ca8d6d-28ef-0310-b511-8ec308f3f277
* From Matt Kraai <kraai@alumni.carnegiemellon.edu>andersen2000-07-131-24/+28
| | | | | | | | | | | | | | | | > Here is a patch so that tr can handle NULL characters as well. Give it > a shot and let me know what you think. It is against the latest CVS > version. > > In my tests, the following now works as expected. > > tr '\0' '\n' > > Later, > Matt git-svn-id: svn://busybox.net/trunk/busybox@836 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Correct argument parsing and other minor cleanups.kraai2000-07-131-11/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@835 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always report the applet name when doing error reporting.kraai2000-07-128-20/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use global applet_name instead of local versions.kraai2000-07-123-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use global applet_name instead of local versions.kraai2000-07-121-5/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@829 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Re-enable ln -n in the help.andersen2000-07-111-2/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@815 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>:andersen2000-07-111-27/+2
| | | | | | | | | | | | | > > The following patch allows ln -n to function like GNU. It also fixes a > typo with my previous patch to add support for ln FILE DIRECTORY. And > it removes some code that checks the maximum length of the filenames. I > can't figure out why that code is necessary. Anyone know? > > Matt git-svn-id: svn://busybox.net/trunk/busybox@814 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Comment on kernel stuffandersen2000-07-101-4/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@807 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove yet more kernel header dependancies.andersen2000-07-101-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@804 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unused variable.andersen2000-07-101-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@803 69ca8d6d-28ef-0310-b511-8ec308f3f277
* From Matt Kraai <kraai@alumni.carnegiemellon.edu>:andersen2000-07-102-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Howdy, Bug #1006 reports that ln -s /tmp/foo . does not work correctly. In fact, it appears that any instantiation of ln -s FILE... DIRECTORY does not work. The following patch adds support for this form, which then fixes the particular instance noted in the bug report. In the process, I needed the basename function. This appears in the string.h provided by glibc, but not uC-libc. So I wrote my own to go in utility.c, called get_last_path_component. I also modified the basename utility to use this function. At some point it might be desirous to use the basename from the library if it exists, and otherwise compile our own. But I don't know how to do this. Matt git-svn-id: svn://busybox.net/trunk/busybox@798 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai <kraai@alumni.carnegiemellon.edu>:andersen2000-07-101-2/+4
| | | | | | | | | | | | | | | | | | | | | | GNU tr complains on the following: $ tr a '' tr: when not truncating set1, string2 must be non-empty BusyBox tr does not complain: $ tr a '' a ^D 0 It should result in an error, not in some spurious output. The attached patch generates an error. Matt git-svn-id: svn://busybox.net/trunk/busybox@797 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More portability updates. Now compiles cleanly vs glibc, libc5, and uclibcandersen2000-07-093-0/+10
| | | | | | | | | (except for mkfs_minix and fsck_minix -- and it doesn't yet link vs uclibc due to missing stuff in the library). -Erik git-svn-id: svn://busybox.net/trunk/busybox@795 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update files to reduce dependance on kernel version...andersen2000-07-081-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@779 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove MAXNAMLEN and use BUFSIZ instead.andersen2000-07-061-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@743 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove misguided klude around for 2.4.x-test* brokenness. Al Viroandersen2000-07-051-3/+0
| | | | | | | | will be removing this stuff from /proc/mounts real soon now I am assured. -Erik git-svn-id: svn://busybox.net/trunk/busybox@740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * Fix to tr so it recognizes standard escape sequences. Merged commonandersen2000-07-052-33/+7
| | | | | | | | | | escape seq. code from tr and echo into utility.c. Fix thanks to Matt Kraai <kraai@alumni.carnegiemellon.edu>. * This should close Bug #1015. Please test. -Erik git-svn-id: svn://busybox.net/trunk/busybox@737 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for ignoring '-g' per GNU ls, thanks to David Vrabelandersen2000-07-031-0/+2
| | | | | | | | | <dvrabel@arcom.co.uk>. Seems some ftp clients expect the '-g' option to exist. -Erik git-svn-id: svn://busybox.net/trunk/busybox@728 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yanked out the cstring_alloc() and cstring_lineFromFile() functions frommarkw2000-06-281-2/+2
| | | | | | | | | | 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
* Fixed segfault with 'cut -f 1 -d:' and added 'cut -s' suport.andersen2000-06-261-7/+23
| | | | | | | | Fix thanks to Arne Bernin <arne@matrix.loopback.org> -Erik git-svn-id: svn://busybox.net/trunk/busybox@704 69ca8d6d-28ef-0310-b511-8ec308f3f277