summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2000-07-12Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.cMark Whitley
(maybe I'll remove it later).
2000-07-12Patch from Jon McClintock <jonm@bluemug.com>Eric Andersen
>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
2000-07-12Always report the applet name when doing error reporting.Matt Kraai
2000-07-12Use global applet_name instead of local versions.Matt Kraai
2000-07-12Use global applet_name instead of local versions.Matt Kraai
2000-07-12The applet name isn't constant.Matt Kraai
2000-07-11Changed verbiage.Eric Andersen
-Erik
2000-07-11Replaced projects with products/projects.Eric Andersen
-Erik
2000-07-11Added the Kerbango Internet Radio to projects/products using BusyBox.Eric Andersen
-Erik
2000-07-11Applied patch from Matt Kraai to call destroy_cmd_strs in atexit(), ratherMark Whitley
than peppering it throughout the code.
2000-07-11Added applet_name to contain the applet name.Matt Kraai
2000-07-11Final updates for release.0_46Eric Andersen
-Erik
2000-07-11Final update for the release.Eric Andersen
2000-07-11Forgot to commit these cleanups it seems.Eric Andersen
-Erik
2000-07-11More changelog updatesEric Andersen
-Erik
2000-07-11Added changelog entries for grep/sed/regex changes.Mark Whitley
2000-07-11Some changelog updates.Eric Andersen
-Erik
2000-07-11Re-enable ln -n in the help.Eric Andersen
-Erik