aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add in redimentary backtick suport (doesn't work properly yet, but isandersen2000-07-143-120/+219
| | | | | | | | close). -Erik git-svn-id: svn://busybox.net/trunk/busybox@846 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It dawned on me that I would need to grow a char buffer one extra char biggermarkw2000-07-142-2/+8
| | | | | | | | | to accomodate a trailing '\n'ewline that I append to it later one. This is only necessary for the case of one inserted, appended, or changed line, but it's still necessary. git-svn-id: svn://busybox.net/trunk/busybox@845 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added error checking for edit commands; only a beginning address can bemarkw2000-07-142-2/+8
| | | | | | | specified. git-svn-id: svn://busybox.net/trunk/busybox@844 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for (a)ppend, (i)nsert, and (c)hange commands to sed.markw2000-07-142-14/+176
| | | | git-svn-id: svn://busybox.net/trunk/busybox@843 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed bug where sed '/foo/p' was printing "invalid command".markw2000-07-132-4/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@842 69ca8d6d-28ef-0310-b511-8ec308f3f277
* (Something I should have done in the previous checkin...) Also broke outmarkw2000-07-132-74/+86
| | | | | | | | substitution command execution from do_sed_command() and put it in it's own do_subst_command() function. git-svn-id: svn://busybox.net/trunk/busybox@841 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor code reorg: Changed the interface to index_of_next_unescaped_slash to anmarkw2000-07-132-96/+116
| | | | | | | | interface that seems a little more sensible to me. Also broke out s/// expression parsing into it's own subroutine. git-svn-id: svn://busybox.net/trunk/busybox@840 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix uninitialized variable.andersen2000-07-132-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@839 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Marc Nijdam <marc_nijdam@hp.com>andersen2000-07-131-11/+9
| | | | | | | | | | | > First (of many more) patch of cp_mv to getopt use. I'm using the most > simplistic approach, just get getopt used, then worry about a cleaner > option parsing style using getopt later. > > Marc git-svn-id: svn://busybox.net/trunk/busybox@838 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added a smallish TODO comment.markw2000-07-132-0/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@837 69ca8d6d-28ef-0310-b511-8ec308f3f277
* From Matt Kraai <kraai@alumni.carnegiemellon.edu>andersen2000-07-132-48/+56
| | | | | | | | | | | | | | | | > 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-132-22/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@835 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added some smallish comments to help folks understand why we have two tablesmarkw2000-07-123-6/+15
| | | | | | | of builtins and the reasoning behind it. git-svn-id: svn://busybox.net/trunk/busybox@834 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cmarkw2000-07-126-26/+17
| | | | | | | (maybe I'll remove it later). git-svn-id: svn://busybox.net/trunk/busybox@833 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jon McClintock <jonm@bluemug.com>andersen2000-07-122-2/+134
| | | | | | | | | | | | | | >The attached patch adds the ability to parse the actual mode specifier in >fbset. So now > > fbset -n 640x480-72 > >Will actually work. I don't know if I've reinvented the wheel though... -Erik git-svn-id: svn://busybox.net/trunk/busybox@832 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Always report the applet name when doing error reporting.kraai2000-07-1242-144/+141
| | | | git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use global applet_name instead of local versions.kraai2000-07-1220-72/+42
| | | | git-svn-id: svn://busybox.net/trunk/busybox@830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use global applet_name instead of local versions.kraai2000-07-126-50/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@829 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The applet name isn't constant.kraai2000-07-123-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@828 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed verbiage.andersen2000-07-111-1/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@827 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Replaced projects with products/projects.andersen2000-07-111-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@826 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added the Kerbango Internet Radio to projects/products using BusyBox.andersen2000-07-111-0/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@825 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Matt Kraai to call destroy_cmd_strs in atexit(), rathermarkw2000-07-112-44/+34
| | | | | | | than peppering it throughout the code. git-svn-id: svn://busybox.net/trunk/busybox@824 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added applet_name to contain the applet name.kraai2000-07-113-10/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@823 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Final updates for release.andersen2000-07-116-8/+27
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@821 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Final update for the release.andersen2000-07-111-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@820 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Forgot to commit these cleanups it seems.andersen2000-07-1116-22/+8
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@819 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More changelog updatesandersen2000-07-111-3/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@818 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added changelog entries for grep/sed/regex changes.markw2000-07-111-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@817 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some changelog updates.andersen2000-07-111-1/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@816 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Re-enable ln -n in the help.andersen2000-07-112-4/+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-112-54/+4
| | | | | | | | | | | | | > > 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
* Added 'dumpkmap' to allow people to dump a binary keymap, which can then beandersen2000-07-1111-14/+248
| | | | | | | | loaded in by 'loadkmap' -- submitted by Arne Bernin <arne@matrix.loopback.org> -Erik git-svn-id: svn://busybox.net/trunk/busybox@813 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Matt Kraai which does the following:markw2000-07-116-195/+120
| | | | | | | | | | - 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
* Fix dead link.kraai2000-07-111-1/+1
| | | | | | | -Matt git-svn-id: svn://busybox.net/trunk/busybox@811 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed NFS so it supports 2.4.x kernels and NFSv3. Should close bug #1009.andersen2000-07-108-1799/+1240
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@810 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed all trace of hand-tooled regexp routines. Bye bye, baby.markw2000-07-103-823/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@809 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added a rule to make tags files for vi(m).markw2000-07-101-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@808 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Comment on kernel stuffandersen2000-07-107-14/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@807 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Brand, new sed that uses libc regex routines.markw2000-07-102-560/+966
| | | | | | | | | | There is some common code used by both sed & grep that should be put into utility.c as per Mat Kraai's suggestions/patch on the mailing list. Specifically, a common regex_compile() and a regex_subst() function need to be made. git-svn-id: svn://busybox.net/trunk/busybox@806 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More linux kernel header file removal.andersen2000-07-104-8/+388
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove yet more kernel header dependancies.andersen2000-07-1015-20/+16
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@804 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unused variable.andersen2000-07-102-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@803 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove the problematic CTRLCHAR macro.andersen2000-07-102-20/+16
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@802 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Put the GROWBY variable inside the get_line_from_file function, as that is themarkw2000-07-101-1/+2
| | | | | | | | only function where it's used and it's always good to keep the namespace clean. :-) git-svn-id: svn://busybox.net/trunk/busybox@801 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed unnecessary #include "regexp.h" line from find.c as per Matt Kraai'smarkw2000-07-102-2/+0
| | | | | | | suggestion on the mailing list. git-svn-id: svn://busybox.net/trunk/busybox@800 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Function name cleanup.andersen2000-07-103-123/+135
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@799 69ca8d6d-28ef-0310-b511-8ec308f3f277
* From Matt Kraai <kraai@alumni.carnegiemellon.edu>:andersen2000-07-106-20/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-102-4/+8
| | | | | | | | | | | | | | | | | | | | | | 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
* Applied patch from Matt Kraai as per his email:markw2000-07-102-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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