aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-07-19Centralize handling of --help.Matt Kraai
2000-07-19Added some missing declarations and fixed some typos. I have toMatt Kraai
remember to compile *before* committing.
2000-07-19Add usage messages for applets without them.Matt Kraai
2000-07-19Avoid trying to free NULL ptrs. Comment on malloc usages.Eric Andersen
-Erik
2000-07-19Use FatalError()Eric Andersen
-Erik
2000-07-19Moved some code and add a coupld #defines to support use of dmalloc.Eric Andersen
-Erik
2000-07-19Funny. Head was getting installed to the wrong spot.Eric Andersen
-Erik
2000-07-19Updated to add support for dmalloc, and adjusted for better crossEric Andersen
compiler support. -Erik
2000-07-18Consolodated some common code into print_matched_line to make 'grep_file' aMark Whitley
little more terse & clean. Also made a few minor formatting changes.
2000-07-18Removed now incorrect message about NFS not working withEric Andersen
Linux 2.[34].x kernels. It does work now, -Erik
2000-07-18Added support for the -c (count matches) option. Made it so it works just likeMark Whitley
GNU grep.
2000-07-18Sigh -- can't sleep. Clean up some mem leaks, fixed some bugs.Eric Andersen
-Erik
2000-07-17New message added to messages.c: full_versionPavel Roskin
Used where possible
2000-07-17Moved functions used by "lsmod" from cat.c to utility.cPavel Roskin
Adjusted to make lsmod and sh compilable as standalone apps. Comment fixes
2000-07-17 - Added support for backreferences in substitution expressions up to nineMark Whitley
(\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.
2000-07-17Now it's possible to compile Busybox with only one app definedPavel Roskin
(unless it's lsmod, to be fixed by the next commit)
2000-07-17Backtick support to infinite (memory limited) levels of nesting isEric Andersen
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
2000-07-17It is now possible to select in busybox.def.h whether minixfs version 2Pavel Roskin
is to be supported.
2000-07-17The result of getopt() is "int" and should be treated as suchPavel Roskin
2000-07-16Extract usage information into a separate file.Matt Kraai
2000-07-14Don't use strings directly in calls to usage(). This is in preparationMatt Kraai
for their extraction to a separate file.
2000-07-14Fixed a couple of buglets:Mark Whitley
- 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.
2000-07-14 - Added support for semicolon delimited command lines. (woo-hoo!)Mark Whitley
- 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.
2000-07-14Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>Eric Andersen
-Erik
2000-07-14Getopt'rd by Marc Nijdam <marc_nijdam@hp.com>Eric Andersen
-Erik
2000-07-14More fixes for "signed vs. unsigned" warnings.Pavel Roskin
2000-07-14Reduced the number of "signed vs. unsigned" warnings.Pavel Roskin
Sometimes such warnings matter (esp. on PPC with char default to unsigned)
2000-07-14More fixes for "missing initializers"Pavel Roskin
2000-07-14Fixed a warning about missing initializerPavel Roskin
2000-07-14The result of getopt() should not be converted to "char" - it breaks on PPCPavel Roskin
2000-07-14More cleanups.Eric Andersen
-Erik
2000-07-14Fix argument parsing.Matt Kraai
2000-07-14Be more pedantic aboutthe terminating null applet.Eric Andersen
-Erik
2000-07-14uid and gid were unsigned, but were compared vs signed values (-1)Eric Andersen
-Erik
2000-07-14A couple of minor warning cleanups.Eric Andersen
-Erik
2000-07-14Use errorMsg rather than fprintf.Matt Kraai
2000-07-14Fix some stupid memory bugs.Eric Andersen
-Erik
2000-07-14Add in redimentary backtick suport (doesn't work properly yet, but isEric Andersen
close). -Erik
2000-07-14It dawned on me that I would need to grow a char buffer one extra char biggerMark Whitley
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.
2000-07-14Added error checking for edit commands; only a beginning address can beMark Whitley
specified.
2000-07-14Added support for (a)ppend, (i)nsert, and (c)hange commands to sed.Mark Whitley
2000-07-13Fixed bug where sed '/foo/p' was printing "invalid command".Mark Whitley
2000-07-13(Something I should have done in the previous checkin...) Also broke outMark Whitley
substitution command execution from do_sed_command() and put it in it's own do_subst_command() function.
2000-07-13Minor code reorg: Changed the interface to index_of_next_unescaped_slash to anMark Whitley
interface that seems a little more sensible to me. Also broke out s/// expression parsing into it's own subroutine.
2000-07-13Fix uninitialized variable.Eric Andersen
-Erik
2000-07-13Patch from Marc Nijdam <marc_nijdam@hp.com>Eric Andersen
> 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
2000-07-13Added a smallish TODO comment.Mark Whitley
2000-07-13From Matt Kraai <kraai@alumni.carnegiemellon.edu>Eric Andersen
> 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
2000-07-13Correct argument parsing and other minor cleanups.Matt Kraai
2000-07-12Added some smallish comments to help folks understand why we have two tablesMark Whitley
of builtins and the reasoning behind it.