aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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