oweals/busybox.git
24 years agosyslogd was leaking processes that could forever busyloop. Fixed.
Eric Andersen [Sun, 20 Aug 2000 06:11:32 +0000 (06:11 -0000)]
syslogd was leaking processes that could forever busyloop.  Fixed.
 -Erik

24 years agoMinor fixups.
Eric Andersen [Sat, 19 Aug 2000 20:16:16 +0000 (20:16 -0000)]
Minor fixups.
 -Erik

24 years agoBetter 'mt' docs, thanks to Kent Robotti <robotti@metconnect.com>
Eric Andersen [Fri, 11 Aug 2000 20:14:11 +0000 (20:14 -0000)]
Better 'mt' docs, thanks to Kent Robotti <robotti@metconnect.com>
 -Erik

24 years agoFix to make 'ar xv' work, thanks to Kent Robotti <robotti@metconnect.com>
Eric Andersen [Fri, 11 Aug 2000 20:11:35 +0000 (20:11 -0000)]
Fix to make 'ar xv' work, thanks to Kent Robotti <robotti@metconnect.com>
 -Erik

24 years agoMinor link update
Eric Andersen [Fri, 11 Aug 2000 18:13:21 +0000 (18:13 -0000)]
Minor link update
 -Erik

24 years agoAdd optional ls file sorting, thanks to a patch from
Eric Andersen [Fri, 11 Aug 2000 18:10:21 +0000 (18:10 -0000)]
Add optional ls file sorting, thanks to a patch from
Sterling Huxley <sterling@europa.com>
 -Erik

24 years agoAdded fix from David Vrabel <dvrabel@arcom.co.uk> for a
Eric Andersen [Fri, 11 Aug 2000 17:45:02 +0000 (17:45 -0000)]
Added fix from David Vrabel <dvrabel@arcom.co.uk> for a
buffer overrun in find_real_root_device(), fixing bug #1019
 -Erik

24 years agoSome #include updates.
Eric Andersen [Thu, 10 Aug 2000 17:59:11 +0000 (17:59 -0000)]
Some #include updates.
 -Erik

24 years agoApplied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' where
Mark Whitley [Thu, 10 Aug 2000 00:09:47 +0000 (00:09 -0000)]
Applied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' where
sed was only printing the first line and then exiting.

24 years agoWe complained if the total number of arguments was greater than 3 and
Matt Kraai [Sun, 6 Aug 2000 15:36:50 +0000 (15:36 -0000)]
We complained if the total number of arguments was greater than 3 and
the destination wasn't a directory.  We should only complain if the
there are multiple sources and target isn't a directory.

24 years agoExit with the appropriate value when grepping multiple files.
Matt Kraai [Sun, 6 Aug 2000 15:25:53 +0000 (15:25 -0000)]
Exit with the appropriate value when grepping multiple files.

24 years agoCleaner way to handle -NUM and +NUM, reduces the mem usage as well.
Eric Andersen [Wed, 2 Aug 2000 19:57:18 +0000 (19:57 -0000)]
Cleaner way to handle -NUM and +NUM, reduces the mem usage as well.
 -Erik

24 years agoFixed the "-f" option.
Eric Andersen [Wed, 2 Aug 2000 18:56:25 +0000 (18:56 -0000)]
Fixed the "-f" option.
 -Erik

24 years agoMerge in two patches from Dave Cinege:
Eric Andersen [Wed, 2 Aug 2000 18:48:26 +0000 (18:48 -0000)]
Merge in two patches from Dave Cinege:
    the first is a cleanup of tar --exclude
    the second changes mount so mtab works more as it should, and
    also allows mount to use the traditional short form (i.e.
    'mount / -o remount,rw' now works.

While inside tar, I changed it to use getopt...
 -Erik

24 years agoMinor cleanup thingy. fprintf(stderr, ...) -> errorMsg().
Mark Whitley [Wed, 2 Aug 2000 18:34:41 +0000 (18:34 -0000)]
Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg().

24 years agoBrand, new version of cut. This fixes the bugs in the old cut, is smaller, and
Mark Whitley [Wed, 2 Aug 2000 18:30:11 +0000 (18:30 -0000)]
Brand, new version of cut. This fixes the bugs in the old cut, is smaller, and
is a sight easier to understand than the Minix cut.

24 years agoUpdate to the tail rewrite by "Allen Soard" <esp-software@mail.hypermart.net>
Eric Andersen [Wed, 2 Aug 2000 16:42:58 +0000 (16:42 -0000)]
Update to the tail rewrite by "Allen Soard" <esp-software@mail.hypermart.net>
 -Erik

24 years agoMinor fix to clean target
Eric Andersen [Tue, 1 Aug 2000 22:44:32 +0000 (22:44 -0000)]
Minor fix to clean target
 -Erik

24 years agoFix bug 1017, which reports that insmod segfaults when /lib/modules doesn't
Matt Kraai [Tue, 1 Aug 2000 18:16:56 +0000 (18:16 -0000)]
Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn't
exist.  Also allow early search termination (per the comments).

24 years agoCommit the rewrite of tail by Allen Soard
Eric Andersen [Mon, 31 Jul 2000 17:05:58 +0000 (17:05 -0000)]
Commit the rewrite of tail by Allen Soard
<esp-software@mail.hypermart.net>.  Thanks Allen for
you work at getting this into shape,
 -Erik

24 years agoNew variable WARNINGS to hold all warning options
Pavel Roskin [Fri, 28 Jul 2000 19:41:32 +0000 (19:41 -0000)]
New variable WARNINGS to hold all warning options

24 years agoFixed to pass -Wundef
Pavel Roskin [Fri, 28 Jul 2000 19:38:27 +0000 (19:38 -0000)]
Fixed to pass -Wundef

24 years agoDisabled debugging output
Pavel Roskin [Fri, 28 Jul 2000 19:34:02 +0000 (19:34 -0000)]
Disabled debugging output
Fine-grained checks for possible errors instead of "set -e"
The standard output shows what is being linked to what

24 years agoFix for a potential uninitialized variable, thx to
Eric Andersen [Fri, 28 Jul 2000 19:05:20 +0000 (19:05 -0000)]
Fix for a potential uninitialized variable, thx to
Ken Chalmers <chalmers@norscan.com>
 -Erik

24 years agoClean up the nasty blunder I'd made of how different behaviors happen.
Eric Andersen [Fri, 28 Jul 2000 17:08:36 +0000 (17:08 -0000)]
Clean up the nasty blunder I'd made of how different behaviors happen.
 -Erik

24 years agoSome cleanups, based on a patch from Ken Chalmers
Eric Andersen [Fri, 28 Jul 2000 16:22:51 +0000 (16:22 -0000)]
Some cleanups, based on a patch from Ken Chalmers
 -Erik

24 years agoFix from Robert Kaiser for stdin behavior.
Eric Andersen [Fri, 28 Jul 2000 15:20:24 +0000 (15:20 -0000)]
Fix from Robert Kaiser for stdin behavior.
 -Erik

24 years agoOops. Forgot an ifdef
Eric Andersen [Fri, 28 Jul 2000 15:19:30 +0000 (15:19 -0000)]
Oops.  Forgot an ifdef
 -Erik

24 years agoFix from Arne Bernin for return code -- now reflects whether the rmmod
Eric Andersen [Fri, 28 Jul 2000 15:16:37 +0000 (15:16 -0000)]
Fix from Arne Bernin for return code -- now reflects whether the rmmod
failed or not.
 -Erik

24 years agoMore sh updates (with related changes to everything else). Switched
Eric Andersen [Fri, 28 Jul 2000 15:14:45 +0000 (15:14 -0000)]
More sh updates (with related changes to everything else).  Switched
to using getopt and cleaned up the resulting mess.  if-then-else-fi
is now basically working (given a bunch of constraints).
 -Erik

24 years agoMore shell features.... if-then-else-fi is now basically usable (disable
Eric Andersen [Thu, 27 Jul 2000 00:15:20 +0000 (00:15 -0000)]
More shell features.... if-then-else-fi is now basically usable (disable
by default pending further debugging).  Added in some basic shell environment
support (i.e. $?, $0-$9, $$, $!, $#).
 -Erik

24 years agoFixed a syntax error & superfluous param decl that was causing the build to
Mark Whitley [Wed, 26 Jul 2000 18:09:22 +0000 (18:09 -0000)]
Fixed a syntax error & superfluous param decl that was causing the build to
fail.

24 years agoMinor style cleanups.
Eric Andersen [Wed, 26 Jul 2000 00:53:56 +0000 (00:53 -0000)]
Minor style cleanups.

24 years agoBetter description
Eric Andersen [Wed, 26 Jul 2000 00:53:34 +0000 (00:53 -0000)]
Better description

24 years agoFix some bitrot.
Eric Andersen [Wed, 26 Jul 2000 00:52:04 +0000 (00:52 -0000)]
Fix some bitrot.
 -Erik

24 years agoModified print_subst_w_backrefs() so it will print backslash escaped
Mark Whitley [Tue, 25 Jul 2000 20:48:44 +0000 (20:48 -0000)]
Modified print_subst_w_backrefs() so it will print backslash escaped
characters properly, just like GNU sed.

24 years agoAdded a note in the "Tips and Pointer" section on the correct way to test for
Mark Whitley [Tue, 25 Jul 2000 20:30:00 +0000 (20:30 -0000)]
Added a note in the "Tips and Pointer" section on the correct way to test for
string equivalence with strcmp().

24 years agoFinish off fixing up the memleaks (I think). Added the beginnings of
Eric Andersen [Tue, 25 Jul 2000 18:06:52 +0000 (18:06 -0000)]
Finish off fixing up the memleaks (I think).  Added the beginnings of
some if-then-else-fi support (nonfunctional and turned off)
 -Erik

24 years agoUse BB_FEATURE_CLEAN_UP where appropriate
Eric Andersen [Tue, 25 Jul 2000 18:01:20 +0000 (18:01 -0000)]
Use BB_FEATURE_CLEAN_UP where appropriate
 -Erik

24 years agoAdd in BB_FEATURE_CLEAN_UP, which is whether to clean up mem leaks and close
Eric Andersen [Tue, 25 Jul 2000 17:59:37 +0000 (17:59 -0000)]
Add in BB_FEATURE_CLEAN_UP, which is whether to clean up mem leaks and close
files, or not.  Usually safe to leave it off and let the OS clean up...
 -Erik

24 years agoRemove some noise.
Eric Andersen [Tue, 25 Jul 2000 17:58:01 +0000 (17:58 -0000)]
Remove some noise.
 -Erik

24 years agoClean up $1=$prefix
Eric Andersen [Tue, 25 Jul 2000 16:47:03 +0000 (16:47 -0000)]
Clean up $1=$prefix
 -Erik

24 years agoFirst revision of the Busybox Style Guide and an accompanying .indent.pro
Mark Whitley [Mon, 24 Jul 2000 22:36:06 +0000 (22:36 -0000)]
First revision of the Busybox Style Guide and an accompanying .indent.pro
file.

24 years agochroot can now call the builtin shell
Pavel Roskin [Mon, 24 Jul 2000 20:15:30 +0000 (20:15 -0000)]
chroot can now call the builtin shell

24 years agoFixed stdin/stdout paths so things like
Eric Andersen [Fri, 21 Jul 2000 22:17:39 +0000 (22:17 -0000)]
Fixed stdin/stdout paths so things like
    tar cvf - /etc/* | gzip -c9 >test.tgz
will now work.  Fix thanks to Dave Cinege <dcinege@psychosis.com>
with some adjustments by me to be mroe GNU-like.
 -Erik

24 years agoAdded 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com>
Eric Andersen [Fri, 21 Jul 2000 21:32:12 +0000 (21:32 -0000)]
Added 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com>
 -Erik

24 years agoBump version number.
Eric Andersen [Fri, 21 Jul 2000 21:27:11 +0000 (21:27 -0000)]
Bump version number.
 -Erik

24 years agoAdd in the LinuxMagic VPN Firewall
Eric Andersen [Fri, 21 Jul 2000 17:22:19 +0000 (17:22 -0000)]
Add in the LinuxMagic VPN Firewall
 -Erik

24 years agoFixed usage info for "cut"
Pavel Roskin [Fri, 21 Jul 2000 15:10:57 +0000 (15:10 -0000)]
Fixed usage info for "cut"

24 years agoTook -V out of the sed_usage string.
Mark Whitley [Thu, 20 Jul 2000 23:54:42 +0000 (23:54 -0000)]
Took -V out of the sed_usage string.

24 years ago* syslogd can now log messages to a remote host -- patch thanks
Eric Andersen [Thu, 20 Jul 2000 23:41:24 +0000 (23:41 -0000)]
* syslogd can now log messages to a remote host -- patch thanks
    to Gyepi Sam <gyepi@praxis-sw.com>
 -Erik

24 years agoAs per a discussion on the mailing list between Matt and Pavel. I have removed
Mark Whitley [Thu, 20 Jul 2000 23:08:40 +0000 (23:08 -0000)]
As per a discussion on the mailing list between Matt and Pavel. I have removed
the -V (version) flag from busybox sed. It is unnecessary because sed is not a
standalone and should therefore be independently reporting a version number.
Moreover, it is extra code that we just don't need.

24 years agoConverted option parsing to getopt(). Also added some explanatory comments.
Mark Whitley [Thu, 20 Jul 2000 23:06:27 +0000 (23:06 -0000)]
Converted option parsing to getopt(). Also added some explanatory comments.

24 years agoAdjusted install.sh to use relative symlinks, and to optionally
Eric Andersen [Thu, 20 Jul 2000 21:57:11 +0000 (21:57 -0000)]
Adjusted install.sh to use relative symlinks, and to optionally
create hardlinks.  Added a makefile target to create hardlinks.
 -Erik

24 years agoConverted option parsing to using getopt(). Also managed to remove an
Mark Whitley [Thu, 20 Jul 2000 00:08:10 +0000 (00:08 -0000)]
Converted option parsing to using getopt(). Also managed to remove an
extraneous logic loop that existed only for the purpose of the special case of
only one file. I replaced it with a variable to keep track of the number of
files read.

24 years agoWhoops. Forgot to #include <getopt.h>.
Mark Whitley [Thu, 20 Jul 2000 00:03:38 +0000 (00:03 -0000)]
Whoops. Forgot to #include <getopt.h>.

24 years agoConverted option parsing to getopt() and made some minor formatting changes.
Mark Whitley [Wed, 19 Jul 2000 19:38:13 +0000 (19:38 -0000)]
Converted option parsing to getopt() and made some minor formatting changes.

24 years agoCentralize handling of --help.
Matt Kraai [Wed, 19 Jul 2000 19:24:01 +0000 (19:24 -0000)]
Centralize handling of --help.

24 years agoAdded some missing declarations and fixed some typos. I have to
Matt Kraai [Wed, 19 Jul 2000 18:20:02 +0000 (18:20 -0000)]
Added some missing declarations and fixed some typos.  I have to
remember to compile *before* committing.

24 years agoAdd usage messages for applets without them.
Matt Kraai [Wed, 19 Jul 2000 18:01:00 +0000 (18:01 -0000)]
Add usage messages for applets without them.

24 years agoAvoid trying to free NULL ptrs. Comment on malloc usages.
Eric Andersen [Wed, 19 Jul 2000 17:37:57 +0000 (17:37 -0000)]
Avoid trying to free NULL ptrs.  Comment on malloc usages.
 -Erik

24 years agoUse FatalError()
Eric Andersen [Wed, 19 Jul 2000 17:36:27 +0000 (17:36 -0000)]
Use FatalError()
 -Erik

24 years agoMoved some code and add a coupld #defines to support use of dmalloc.
Eric Andersen [Wed, 19 Jul 2000 17:35:54 +0000 (17:35 -0000)]
Moved some code and add a coupld #defines to support use of dmalloc.
 -Erik

24 years agoFunny. Head was getting installed to the wrong spot.
Eric Andersen [Wed, 19 Jul 2000 17:34:40 +0000 (17:34 -0000)]
Funny.  Head was getting installed to the wrong spot.
 -Erik

24 years agoUpdated to add support for dmalloc, and adjusted for better cross
Eric Andersen [Wed, 19 Jul 2000 17:33:54 +0000 (17:33 -0000)]
Updated to add support for dmalloc, and adjusted for better cross
compiler support.
 -Erik

24 years agoConsolodated some common code into print_matched_line to make 'grep_file' a
Mark Whitley [Tue, 18 Jul 2000 21:02:06 +0000 (21:02 -0000)]
Consolodated some common code into print_matched_line to make 'grep_file' a
little more terse & clean. Also made a few minor formatting changes.

24 years agoRemoved now incorrect message about NFS not working with
Eric Andersen [Tue, 18 Jul 2000 18:54:08 +0000 (18:54 -0000)]
Removed now incorrect message about NFS not working with
Linux 2.[34].x kernels.  It does work now,
 -Erik

24 years agoAdded support for the -c (count matches) option. Made it so it works just like
Mark Whitley [Tue, 18 Jul 2000 18:37:01 +0000 (18:37 -0000)]
Added support for the -c (count matches) option. Made it so it works just like
GNU grep.

24 years agoSigh -- can't sleep. Clean up some mem leaks, fixed some bugs.
Eric Andersen [Tue, 18 Jul 2000 08:16:39 +0000 (08:16 -0000)]
Sigh -- can't sleep.  Clean up some mem leaks, fixed some bugs.
 -Erik

24 years agoNew message added to messages.c: full_version
Pavel Roskin [Mon, 17 Jul 2000 23:45:12 +0000 (23:45 -0000)]
New message added to messages.c: full_version
Used where possible

24 years agoMoved functions used by "lsmod" from cat.c to utility.c
Pavel Roskin [Mon, 17 Jul 2000 20:18:42 +0000 (20:18 -0000)]
Moved functions used by "lsmod" from cat.c to utility.c
Adjusted to make lsmod and sh compilable as standalone apps.
Comment fixes

24 years ago - Added support for backreferences in substitution expressions up to nine
Mark Whitley [Mon, 17 Jul 2000 20:06:42 +0000 (20:06 -0000)]
 - Added support for backreferences in substitution expressions up to nine
   (\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.

24 years agoNow it's possible to compile Busybox with only one app defined
Pavel Roskin [Mon, 17 Jul 2000 19:31:54 +0000 (19:31 -0000)]
Now it's possible to compile Busybox with only one app defined
(unless it's lsmod, to be fixed by the next commit)

24 years agoBacktick support to infinite (memory limited) levels of nesting is
Eric Andersen [Mon, 17 Jul 2000 19:14:41 +0000 (19:14 -0000)]
Backtick support to infinite (memory limited) levels of nesting is
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

24 years agoIt is now possible to select in busybox.def.h whether minixfs version 2
Pavel Roskin [Mon, 17 Jul 2000 17:52:00 +0000 (17:52 -0000)]
It is now possible to select in busybox.def.h whether minixfs version 2
is to be supported.

24 years agoThe result of getopt() is "int" and should be treated as such
Pavel Roskin [Mon, 17 Jul 2000 16:17:19 +0000 (16:17 -0000)]
The result of getopt() is "int" and should be treated as such

24 years agoExtract usage information into a separate file.
Matt Kraai [Sun, 16 Jul 2000 20:57:15 +0000 (20:57 -0000)]
Extract usage information into a separate file.

24 years agoDon't use strings directly in calls to usage(). This is in preparation
Matt Kraai [Fri, 14 Jul 2000 23:28:47 +0000 (23:28 -0000)]
Don't use strings directly in calls to usage().  This is in preparation
for their extraction to a separate file.

24 years agoFixed a couple of buglets:
Mark Whitley [Fri, 14 Jul 2000 23:24:00 +0000 (23:24 -0000)]
Fixed a couple of buglets:
 - 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.

24 years ago - Added support for semicolon delimited command lines. (woo-hoo!)
Mark Whitley [Fri, 14 Jul 2000 19:06:30 +0000 (19:06 -0000)]
 - Added support for semicolon delimited command lines. (woo-hoo!)
 - 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.

24 years agoGetopt'ed by Marc Nijdam <marc_nijdam@hp.com>
Eric Andersen [Fri, 14 Jul 2000 18:39:08 +0000 (18:39 -0000)]
Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>
 -Erik

24 years agoGetopt'rd by Marc Nijdam <marc_nijdam@hp.com>
Eric Andersen [Fri, 14 Jul 2000 18:38:26 +0000 (18:38 -0000)]
Getopt'rd by Marc Nijdam <marc_nijdam@hp.com>
 -Erik

24 years agoMore fixes for "signed vs. unsigned" warnings.
Pavel Roskin [Fri, 14 Jul 2000 17:24:58 +0000 (17:24 -0000)]
More fixes for "signed vs. unsigned" warnings.

24 years agoReduced the number of "signed vs. unsigned" warnings.
Pavel Roskin [Fri, 14 Jul 2000 16:23:32 +0000 (16:23 -0000)]
Reduced the number of "signed vs. unsigned" warnings.
Sometimes such warnings matter (esp. on PPC with char default to unsigned)

24 years agoMore fixes for "missing initializers"
Pavel Roskin [Fri, 14 Jul 2000 15:55:41 +0000 (15:55 -0000)]
More fixes for "missing initializers"

24 years agoFixed a warning about missing initializer
Pavel Roskin [Fri, 14 Jul 2000 15:44:25 +0000 (15:44 -0000)]
Fixed a warning about missing initializer

24 years agoThe result of getopt() should not be converted to "char" - it breaks on PPC
Pavel Roskin [Fri, 14 Jul 2000 15:18:57 +0000 (15:18 -0000)]
The result of getopt() should not be converted to "char" - it breaks on PPC

24 years agoMore cleanups.
Eric Andersen [Fri, 14 Jul 2000 06:49:52 +0000 (06:49 -0000)]
More cleanups.
 -Erik

24 years agoFix argument parsing.
Matt Kraai [Fri, 14 Jul 2000 06:47:33 +0000 (06:47 -0000)]
Fix argument parsing.

24 years agoBe more pedantic aboutthe terminating null applet.
Eric Andersen [Fri, 14 Jul 2000 06:29:10 +0000 (06:29 -0000)]
Be more pedantic aboutthe terminating null applet.
 -Erik

24 years agouid and gid were unsigned, but were compared vs signed values (-1)
Eric Andersen [Fri, 14 Jul 2000 06:27:54 +0000 (06:27 -0000)]
uid and gid were unsigned, but were compared vs signed values (-1)
 -Erik

24 years agoA couple of minor warning cleanups.
Eric Andersen [Fri, 14 Jul 2000 06:19:41 +0000 (06:19 -0000)]
A couple of minor warning cleanups.
 -Erik

24 years agoUse errorMsg rather than fprintf.
Matt Kraai [Fri, 14 Jul 2000 01:51:25 +0000 (01:51 -0000)]
Use errorMsg rather than fprintf.

24 years agoFix some stupid memory bugs.
Eric Andersen [Fri, 14 Jul 2000 01:13:37 +0000 (01:13 -0000)]
Fix some stupid memory bugs.
 -Erik

24 years agoAdd in redimentary backtick suport (doesn't work properly yet, but is
Eric Andersen [Fri, 14 Jul 2000 01:13:11 +0000 (01:13 -0000)]
Add in redimentary backtick suport (doesn't work properly yet, but is
close).
 -Erik

24 years agoIt dawned on me that I would need to grow a char buffer one extra char bigger
Mark Whitley [Fri, 14 Jul 2000 00:49:59 +0000 (00:49 -0000)]
It dawned on me that I would need to grow a char buffer one extra char bigger
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.

24 years agoAdded error checking for edit commands; only a beginning address can be
Mark Whitley [Fri, 14 Jul 2000 00:13:52 +0000 (00:13 -0000)]
Added error checking for edit commands; only a beginning address can be
specified.

24 years agoAdded support for (a)ppend, (i)nsert, and (c)hange commands to sed.
Mark Whitley [Fri, 14 Jul 2000 00:00:15 +0000 (00:00 -0000)]
Added support for (a)ppend, (i)nsert, and (c)hange commands to sed.

24 years agoFixed bug where sed '/foo/p' was printing "invalid command".
Mark Whitley [Thu, 13 Jul 2000 22:52:02 +0000 (22:52 -0000)]
Fixed bug where sed '/foo/p' was printing "invalid command".

24 years ago(Something I should have done in the previous checkin...) Also broke out
Mark Whitley [Thu, 13 Jul 2000 20:01:58 +0000 (20:01 -0000)]
(Something I should have done in the previous checkin...) Also broke out
substitution command execution from do_sed_command() and put it in it's own
do_subst_command() function.