1
0
mirror of synced 2026-10-29 06:12:57 +03:00

Commit Graph

  • ce82c8ab77 Fix an option parsing bug where things like chmod -r /tmp/file wholdn't work (since it thought -r was an option). Doh! -Erik Eric Andersen 2000-08-22 01:00:56 +00:00
  • 2368a387ed Some additional tips and formatting changes. Mark Whitley 2000-08-22 00:20:21 +00:00
  • e4c4d69c04 Fix a silly bug so it compiles up properly -Erik Eric Andersen 2000-08-21 23:29:45 +00:00
  • 6ab22027d0 Oops. Forgot to commit rdate.c. -Erik Eric Andersen 2000-08-21 23:04:00 +00:00
  • fba9c00071 Script to do regression test, by combining all possible options. -Erik Eric Andersen 2000-08-21 23:01:39 +00:00
  • acf5551099 Script to do regression test, by combining all possible options. Run this to check for combinitorial type build errors. -Erik Eric Andersen 2000-08-21 23:01:20 +00:00
  • 918507edda Added the 'rdate' command, thanks to Sterling Huxley <sterling@europa.com>. I added the docs, and made behavior identical to the GNU version. -Erik Eric Andersen 2000-08-21 22:46:33 +00:00
  • 851ce895bd Turn off some debug noise. -Erik Eric Andersen 2000-08-21 22:34:23 +00:00
  • a1f16bba72 Added getopt(1) from "Alfred M. Szmidt" <ams@trillian.itslinux.org> -Erik Eric Andersen 2000-08-21 22:02:34 +00:00
  • e2205f093b Removed since this patch is now in the current 2.4.x kernel tree. -Erik Eric Andersen 2000-08-21 21:44:52 +00:00
  • 0e4cec0be8 Applied patch from Mark Ferrell <mferrell@mvista.com> to use the 'p' option in substitution expressions. Mark Whitley 2000-08-21 21:29:20 +00:00
  • dc746169cf Oops. Forgot to add in reset.c. Doh! -Erik Eric Andersen 2000-08-21 21:26:33 +00:00
  • 282c364148 Fix a thinko, thanks to Klaasjan <klaasjan@europe.com> -Erik Eric Andersen 2000-08-21 21:23:48 +00:00
  • fa405d0cb2 Add in the "reset" command. -Erik Eric Andersen 2000-08-21 21:18:52 +00:00
  • 202995c612 Yet another patch to fixup lsmod -Erik Eric Andersen 2000-08-21 19:40:42 +00:00
  • c86e5e6145 Some leftover stuff I forgot to commit for the lsmod change. -Erik Eric Andersen 2000-08-21 19:38:49 +00:00
  • be0dc0d06a lsmod now uses the query_module syscall, rather then /proc -Erik Eric Andersen 2000-08-21 19:25:16 +00:00
  • b2fc5a0647 syslogd was leaking processes that could forever busyloop. Fixed. -Erik Eric Andersen 2000-08-20 06:11:32 +00:00
  • e89267c8b3 Minor fixups. -Erik Eric Andersen 2000-08-19 20:16:16 +00:00
  • 8cbac440d6 Better 'mt' docs, thanks to Kent Robotti <robotti@metconnect.com> -Erik Eric Andersen 2000-08-11 20:14:11 +00:00
  • 6ac18a3d83 Fix to make 'ar xv' work, thanks to Kent Robotti <robotti@metconnect.com> -Erik Eric Andersen 2000-08-11 20:11:35 +00:00
  • bb39a31e33 Minor link update -Erik Eric Andersen 2000-08-11 18:13:21 +00:00
  • 79565b6c91 Add optional ls file sorting, thanks to a patch from Sterling Huxley <sterling@europa.com> -Erik Eric Andersen 2000-08-11 18:10:21 +00:00
  • f9ca653faa Added fix from David Vrabel <dvrabel@arcom.co.uk> for a buffer overrun in find_real_root_device(), fixing bug #1019 -Erik Eric Andersen 2000-08-11 17:45:02 +00:00
  • 88f50b6bf5 Some #include updates. -Erik Eric Andersen 2000-08-10 17:59:11 +00:00
  • 40406e6bad Applied patch from Mark Ferrell <mferrell@mvista.com> to fix sed '1,$p' where sed was only printing the first line and then exiting. Mark Whitley 2000-08-10 00:09:47 +00:00
  • adbf018dc4 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. Matt Kraai 2000-08-06 15:36:50 +00:00
  • deb95f69b6 Exit with the appropriate value when grepping multiple files. Matt Kraai 2000-08-06 15:25:53 +00:00
  • 46ade97983 Cleaner way to handle -NUM and +NUM, reduces the mem usage as well. -Erik Eric Andersen 2000-08-02 19:57:18 +00:00
  • 0c8e2a6580 Fixed the "-f" option. -Erik Eric Andersen 2000-08-02 18:56:25 +00:00
  • fdd5103348 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. Eric Andersen 2000-08-02 18:48:26 +00:00
  • 5ae166813f Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg(). Mark Whitley 2000-08-02 18:34:41 +00:00
  • 807f0fd637 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. Mark Whitley 2000-08-02 18:30:11 +00:00
  • d5fa3e3e9a Update to the tail rewrite by "Allen Soard" <esp-software@mail.hypermart.net> -Erik Eric Andersen 2000-08-02 16:42:58 +00:00
  • 080d51bf45 Minor fix to clean target -Erik Eric Andersen 2000-08-01 22:44:32 +00:00
  • 0f8f7b8a35 Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn't exist. Also allow early search termination (per the comments). Matt Kraai 2000-08-01 18:16:56 +00:00
  • 98bbd688a8 Commit the rewrite of tail by Allen Soard <esp-software@mail.hypermart.net>. Thanks Allen for you work at getting this into shape, -Erik Eric Andersen 2000-07-31 17:05:58 +00:00
  • 43c17b3d96 New variable WARNINGS to hold all warning options Pavel Roskin 2000-07-28 19:41:32 +00:00
  • 616d13bcd1 Fixed to pass -Wundef Pavel Roskin 2000-07-28 19:38:27 +00:00
  • 259972e565 Disabled debugging output Fine-grained checks for possible errors instead of "set -e" The standard output shows what is being linked to what Pavel Roskin 2000-07-28 19:34:02 +00:00
  • 9cf306d55e Fix for a potential uninitialized variable, thx to Ken Chalmers <chalmers@norscan.com> -Erik Eric Andersen 2000-07-28 19:05:20 +00:00
  • 6a4c33c5c0 Clean up the nasty blunder I'd made of how different behaviors happen. -Erik Eric Andersen 2000-07-28 17:08:36 +00:00
  • 6150df320a Some cleanups, based on a patch from Ken Chalmers -Erik Eric Andersen 2000-07-28 16:22:51 +00:00
  • d5704686b1 Fix from Robert Kaiser for stdin behavior. -Erik Eric Andersen 2000-07-28 15:20:24 +00:00
  • 1428c4f136 Oops. Forgot an ifdef -Erik Eric Andersen 2000-07-28 15:19:30 +00:00
  • a5716d3029 Fix from Arne Bernin for return code -- now reflects whether the rmmod failed or not. -Erik Eric Andersen 2000-07-28 15:16:37 +00:00
  • 501c88b245 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 Eric Andersen 2000-07-28 15:14:45 +00:00
  • 6a99aaf020 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 Eric Andersen 2000-07-27 00:15:20 +00:00
  • 7ce41ad692 Fixed a syntax error & superfluous param decl that was causing the build to fail. Mark Whitley 2000-07-26 18:09:22 +00:00
  • e92108ae6d Minor style cleanups. Eric Andersen 2000-07-26 00:53:56 +00:00
  • 0d49dd53cf Better description Eric Andersen 2000-07-26 00:53:34 +00:00
  • cc10a5b42b Fix some bitrot. -Erik Eric Andersen 2000-07-26 00:52:04 +00:00
  • 83e85f6a08 Modified print_subst_w_backrefs() so it will print backslash escaped characters properly, just like GNU sed. Mark Whitley 2000-07-25 20:48:44 +00:00
  • 52681b48dc Added a note in the "Tips and Pointer" section on the correct way to test for string equivalence with strcmp(). Mark Whitley 2000-07-25 20:30:00 +00:00
  • fad9c1198a Finish off fixing up the memleaks (I think). Added the beginnings of some if-then-else-fi support (nonfunctional and turned off) -Erik Eric Andersen 2000-07-25 18:06:52 +00:00
  • b040d4f3da Use BB_FEATURE_CLEAN_UP where appropriate -Erik Eric Andersen 2000-07-25 18:01:20 +00:00
  • b9ea02c04b 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 Eric Andersen 2000-07-25 17:59:37 +00:00
  • d34595d857 Remove some noise. -Erik Eric Andersen 2000-07-25 17:58:01 +00:00
  • e5db406690 Clean up $1=$prefix -Erik Eric Andersen 2000-07-25 16:47:03 +00:00
  • 40bfc76385 First revision of the Busybox Style Guide and an accompanying .indent.pro file. Mark Whitley 2000-07-24 22:36:06 +00:00
  • e99f7500e0 chroot can now call the builtin shell Pavel Roskin 2000-07-24 20:15:30 +00:00
  • ea824fb937 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 Eric Andersen 2000-07-21 22:17:39 +00:00
  • bf960f58e2 Added 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com> -Erik Eric Andersen 2000-07-21 21:32:12 +00:00
  • 7df345e149 Bump version number. -Erik Eric Andersen 2000-07-21 21:27:11 +00:00
  • ec8d60f0f8 Add in the LinuxMagic VPN Firewall -Erik Eric Andersen 2000-07-21 17:22:19 +00:00
  • 0010ee45e3 Fixed usage info for "cut" Pavel Roskin 2000-07-21 15:10:57 +00:00
  • c768ab490e Took -V out of the sed_usage string. Mark Whitley 2000-07-20 23:54:42 +00:00
  • ced2cefcca * syslogd can now log messages to a remote host -- patch thanks to Gyepi Sam <gyepi@praxis-sw.com> -Erik Eric Andersen 2000-07-20 23:41:24 +00:00
  • 1f45b268cb 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. Mark Whitley 2000-07-20 23:08:40 +00:00
  • 1ac435c15e Converted option parsing to getopt(). Also added some explanatory comments. Mark Whitley 2000-07-20 23:06:27 +00:00
  • 51154bacbe Adjusted install.sh to use relative symlinks, and to optionally create hardlinks. Added a makefile target to create hardlinks. -Erik Eric Andersen 2000-07-20 21:57:11 +00:00
  • 3950596e1e 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. Mark Whitley 2000-07-20 00:08:10 +00:00
  • 99e370f0c6 Whoops. Forgot to #include <getopt.h>. Mark Whitley 2000-07-20 00:03:38 +00:00
  • aa4f108338 Converted option parsing to getopt() and made some minor formatting changes. Mark Whitley 2000-07-19 19:38:13 +00:00
  • 27a804246a Centralize handling of --help. Matt Kraai 2000-07-19 19:24:01 +00:00
  • 869057238b Added some missing declarations and fixed some typos. I have to remember to compile *before* committing. Matt Kraai 2000-07-19 18:20:02 +00:00
  • 2f46b664b7 Add usage messages for applets without them. Matt Kraai 2000-07-19 18:01:00 +00:00
  • 91a4400fd5 Avoid trying to free NULL ptrs. Comment on malloc usages. -Erik Eric Andersen 2000-07-19 17:37:57 +00:00
  • a16c66335e Use FatalError() -Erik Eric Andersen 2000-07-19 17:36:27 +00:00
  • ae6eae02dd Moved some code and add a coupld #defines to support use of dmalloc. -Erik Eric Andersen 2000-07-19 17:35:54 +00:00
  • 52d6fa3bb3 Funny. Head was getting installed to the wrong spot. -Erik Eric Andersen 2000-07-19 17:34:40 +00:00
  • 1d255be78d Updated to add support for dmalloc, and adjusted for better cross compiler support. -Erik Eric Andersen 2000-07-19 17:33:54 +00:00
  • 2ef880b236 Consolodated some common code into print_matched_line to make 'grep_file' a little more terse & clean. Also made a few minor formatting changes. Mark Whitley 2000-07-18 21:02:06 +00:00
  • a9d69fb568 Removed now incorrect message about NFS not working with Linux 2.[34].x kernels. It does work now, -Erik Eric Andersen 2000-07-18 18:54:08 +00:00
  • 8f122431f5 Added support for the -c (count matches) option. Made it so it works just like GNU grep. Mark Whitley 2000-07-18 18:37:01 +00:00
  • 6efc48c1ae Sigh -- can't sleep. Clean up some mem leaks, fixed some bugs. -Erik Eric Andersen 2000-07-18 08:16:39 +00:00
  • 9c5fcc3408 New message added to messages.c: full_version Used where possible Pavel Roskin 2000-07-17 23:45:12 +00:00
  • cc8a66b113 Moved functions used by "lsmod" from cat.c to utility.c Adjusted to make lsmod and sh compilable as standalone apps. Comment fixes Pavel Roskin 2000-07-17 20:18:42 +00:00
  • 97562bd9d7 - 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. Mark Whitley 2000-07-17 20:06:42 +00:00
  • 21ddb38fcf Now it's possible to compile Busybox with only one app defined (unless it's lsmod, to be fixed by the next commit) Pavel Roskin 2000-07-17 19:31:54 +00:00
  • a1d187a8a8 Backtick support to infinite (memory limited) levels of nesting is now implemented... So now busybox shell can do cool stuff like: Eric Andersen 2000-07-17 19:14:41 +00:00
  • bc0aed79a8 It is now possible to select in busybox.def.h whether minixfs version 2 is to be supported. Pavel Roskin 2000-07-17 17:52:00 +00:00
  • 47d4926244 The result of getopt() is "int" and should be treated as such Pavel Roskin 2000-07-17 16:17:19 +00:00
  • bf181b9338 Extract usage information into a separate file. Matt Kraai 2000-07-16 20:57:15 +00:00
  • 3bd8bd89ee Don't use strings directly in calls to usage(). This is in preparation for their extraction to a separate file. Matt Kraai 2000-07-14 23:28:47 +00:00
  • 464c5de00d 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. Mark Whitley 2000-07-14 23:24:00 +00:00
  • 70705d7c96 - 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. Mark Whitley 2000-07-14 19:06:30 +00:00
  • add09fd558 Getopt'ed by Marc Nijdam <marc_nijdam@hp.com> -Erik Eric Andersen 2000-07-14 18:39:08 +00:00
  • 17ad45aace Getopt'rd by Marc Nijdam <marc_nijdam@hp.com> -Erik Eric Andersen 2000-07-14 18:38:26 +00:00
  • df4532bfa3 More fixes for "signed vs. unsigned" warnings. Pavel Roskin 2000-07-14 17:24:58 +00:00