aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated to add support for dmalloc, and adjusted for better crossandersen2000-07-191-10/+27
| | | | | | | | compiler support. -Erik git-svn-id: svn://busybox.net/trunk/busybox@876 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolodated some common code into print_matched_line to make 'grep_file' amarkw2000-07-182-20/+22
| | | | | | | 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
* Removed now incorrect message about NFS not working withandersen2000-07-181-2/+1
| | | | | | | | Linux 2.[34].x kernels. It does work now, -Erik git-svn-id: svn://busybox.net/trunk/busybox@874 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for the -c (count matches) option. Made it so it works just likemarkw2000-07-182-6/+44
| | | | | | | GNU grep. git-svn-id: svn://busybox.net/trunk/busybox@873 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sigh -- can't sleep. Clean up some mem leaks, fixed some bugs.andersen2000-07-183-117/+129
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New message added to messages.c: full_versionproski2000-07-1711-19/+53
| | | | | | | Used where possible git-svn-id: svn://busybox.net/trunk/busybox@871 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Moved functions used by "lsmod" from cat.c to utility.cproski2000-07-176-40/+37
| | | | | | | | 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
* - Added support for backreferences in substitution expressions up to ninemarkw2000-07-172-36/+152
| | | | | | | | | | | | | | | | | | (\1, \2...\9). This touched a lot of places in this file and I added a new function 'print_subst_w_backrefs' in order to keep 'do_subst_command' a little more tidy. * I tested this good 'n hard, but will always appreciate more testing from other, willing folks. - Noticed that the index_of_next_unescaped_slash was subtly wrong so I changed both the functionality and behavior (it used to skip over the first char in the string you passed it, assuming it was a leading '/'--this assumption is no longer made) this necessitated changing the lines that call this function just slightly. git-svn-id: svn://busybox.net/trunk/busybox@869 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Now it's possible to compile Busybox with only one app definedproski2000-07-172-15/+21
| | | | | | | (unless it's lsmod, to be fixed by the next commit) git-svn-id: svn://busybox.net/trunk/busybox@868 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Backtick support to infinite (memory limited) levels of nesting isandersen2000-07-173-90/+255
| | | | | | | | | | | | | | | now implemented... So now busybox shell can do cool stuff like: /home/andersen/CVS/busybox # echo foo `wc README` bar foo 71 422 2951 README bar I love writing cool new features.... Muhahahaha... (I think this is leaking a little bit of memory every time it expands a backtick process, so I still needs to do a bit of cleanup...) -Erik git-svn-id: svn://busybox.net/trunk/busybox@867 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It is now possible to select in busybox.def.h whether minixfs version 2proski2000-07-175-72/+63
| | | | | | | is to be supported. git-svn-id: svn://busybox.net/trunk/busybox@866 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The result of getopt() is "int" and should be treated as suchproski2000-07-178-10/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@865 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-16175-2050/+2529
| | | | 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-1431-289/+321
| | | | | | | for their extraction to a separate file. git-svn-id: svn://busybox.net/trunk/busybox@863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a couple of buglets:markw2000-07-142-12/+58
| | | | | | | | | | | | | | | | | | | - add_cmd_str: segv's were being generated if there was a '# comment' line (and probably other kinds of lines, too) that was not followed by a semi-colon or whitespace - parse_edit_cmd: was returning a wrong number (too low) for the index; it was not accounting for backslashes eaten, for the fact that we start at the 3rd index in the string, or for the fact that we add an extra newline. - parse_cmd_str: was returning a wrong number (again, too low) for the index in the case of single-letter commands (p,d). There was some over-compensation for this in the 'return' stmt at the end which also needed some help. - load_cmd_file: was not eating trailing newlines off the line read from the command file. This had the deleterious effect of printing an extra newlines after text displayed from edit (i,a,c) commands. git-svn-id: svn://busybox.net/trunk/busybox@862 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - Added support for semicolon delimited command lines. (woo-hoo!)markw2000-07-142-62/+144
| | | | | | | | | | | | - Obsoleted the trim_str function (#if 0'ed out -- maybedelete later) in favor of strrspn. - Obsoleted the strrspn function (#if 0'ed out as well) as soon as I discovered that it wasn't needed either. - Fixed a subtle bug in parse_subst_cmd where it would choke with an error if there was any trailing space after the s/match/replace/ expression. git-svn-id: svn://busybox.net/trunk/busybox@861 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>andersen2000-07-146-174/+128
| | | | | | | -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-142-42/+22
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@859 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More fixes for "signed vs. unsigned" warnings.proski2000-07-144-6/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@858 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reduced the number of "signed vs. unsigned" warnings.proski2000-07-142-12/+12
| | | | | | | Sometimes such warnings matter (esp. on PPC with char default to unsigned) git-svn-id: svn://busybox.net/trunk/busybox@857 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More fixes for "missing initializers"proski2000-07-144-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@856 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a warning about missing initializerproski2000-07-142-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@855 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The result of getopt() should not be converted to "char" - it breaks on PPCproski2000-07-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More cleanups.andersen2000-07-1415-69/+69
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@853 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix argument parsing.kraai2000-07-142-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@852 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be more pedantic aboutthe terminating null applet.andersen2000-07-142-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@851 69ca8d6d-28ef-0310-b511-8ec308f3f277
* uid and gid were unsigned, but were compared vs signed values (-1)andersen2000-07-141-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@850 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A couple of minor warning cleanups.andersen2000-07-146-7/+13
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@849 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-1481-473/+391
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some stupid memory bugs.andersen2000-07-142-4/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 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