Matt Kraai
b89075298e
Fix unchecked calls to {m,c,re}alloc so that they print an error and
...
exit rather than segfaulting (what an improvement).
2000-09-13 02:08:21 +00:00
Matt Kraai
6085c72b6e
Reset optind so that getopt works in busybox applets called directly by sh.
...
Change the behavior of -c to correctly handle $1..$9.
2000-09-06 01:46:18 +00:00
Eric Andersen
851ce895bd
Turn off some debug noise.
...
-Erik
2000-08-21 22:34:23 +00:00
Eric Andersen
6a4c33c5c0
Clean up the nasty blunder I'd made of how different behaviors happen.
...
-Erik
2000-07-28 17:08:36 +00:00
Eric Andersen
1428c4f136
Oops. Forgot an ifdef
...
-Erik
2000-07-28 15:19:30 +00:00
Eric Andersen
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
2000-07-28 15:14:45 +00:00
Eric Andersen
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
2000-07-27 00:15:20 +00:00
Eric Andersen
e92108ae6d
Minor style cleanups.
2000-07-26 00:53:56 +00:00
Eric Andersen
fad9c1198a
Finish off fixing up the memleaks (I think). Added the beginnings of
...
some if-then-else-fi support (nonfunctional and turned off)
-Erik
2000-07-25 18:06:52 +00:00
Eric Andersen
b040d4f3da
Use BB_FEATURE_CLEAN_UP where appropriate
...
-Erik
2000-07-25 18:01:20 +00:00
Eric Andersen
91a4400fd5
Avoid trying to free NULL ptrs. Comment on malloc usages.
...
-Erik
2000-07-19 17:37:57 +00:00
Eric Andersen
6efc48c1ae
Sigh -- can't sleep. Clean up some mem leaks, fixed some bugs.
...
-Erik
2000-07-18 08:16:39 +00:00
Pavel Roskin
9c5fcc3408
New message added to messages.c: full_version
...
Used where possible
2000-07-17 23:45:12 +00:00
Eric Andersen
a1d187a8a8
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
2000-07-17 19:14:41 +00:00
Matt Kraai
bf181b9338
Extract usage information into a separate file.
2000-07-16 20:57:15 +00:00
Eric Andersen
fad04fdd12
More cleanups.
...
-Erik
2000-07-14 06:49:52 +00:00
Matt Kraai
d537a95fdb
Use errorMsg rather than fprintf.
2000-07-14 01:51:25 +00:00
Eric Andersen
4ac6cb534d
Fix some stupid memory bugs.
...
-Erik
2000-07-14 01:13:37 +00:00
Eric Andersen
ec10b9d534
Add in redimentary backtick suport (doesn't work properly yet, but is
...
close).
-Erik
2000-07-14 01:13:11 +00:00
Mark Whitley
55380700d8
Added a smallish TODO comment.
2000-07-13 17:20:23 +00:00
Mark Whitley
37653aaf9c
Added some smallish comments to help folks understand why we have two tables
...
of builtins and the reasoning behind it.
2000-07-12 23:36:17 +00:00
Matt Kraai
be84cd4ef6
Always report the applet name when doing error reporting.
2000-07-12 17:02:35 +00:00
Eric Andersen
34e1941c32
Function name cleanup.
...
-Erik
2000-07-10 18:47:24 +00:00
Eric Andersen
03f9c81cec
Naming fix
...
-Erik
2000-07-07 20:37:12 +00:00
Eric Andersen
b2731b11ef
Had an extra tcsetpgrp.
...
-Erik
2000-07-06 16:56:56 +00:00
Eric Andersen
72965e3454
Fixed a potential infinite loop. First delete any chars after the
...
cursor, then delete everything before it. Before this, we would just
delete everything before the cursor and freak out if there were still
chars left (i.e. stuff after the cursor).
-Erik
2000-07-04 06:22:18 +00:00
Eric Andersen
b54833cde0
sh fixes from Marius Groeger <mag@sysgo.de>
...
-Erik
2000-07-03 23:56:26 +00:00
Eric Andersen
1c314ad655
* Fixed a _horrible_ bug where 'tar -tvf' could unlink
...
local files!!! Fix thanks to Marius Groeger <mgroeger@sysgo.de>
* Added support for "sh -c command args...", also thanks to
Marius Groeger <mgroeger@sysgo.de>
-Erik
2000-06-28 16:56:25 +00:00
Eric Andersen
b610615be9
Updates to a number of apps to remove warnings/compile errors under libc5.
...
Tested under both libc5 and libc6 and all seems well with these fixes.
-Erik
2000-06-19 17:25:40 +00:00
Eric Andersen
74c66ad06e
Fix some spelling errors in the source as well.
...
-Erik
2000-06-16 19:57:44 +00:00
Erik Andersen
8ea7d8cdaf
First pass at fixing tar segfault, and more portability updates.
...
-Erik
2000-05-20 00:40:08 +00:00
Erik Andersen
330fd2b576
More libc portability updates, add in the website (which has not been
...
archived previously). Wrote 'which' during the meeting today.
-Erik
2000-05-19 05:35:19 +00:00
Erik Andersen
c3f5c9c2ee
Minor fixes to being a standalone shell.
...
-Erik
2000-05-13 19:00:07 +00:00
Erik Andersen
bcd6177853
BusyBox shell (lash) can now be used as a standalone shell when
...
BB_FEATURE_STANDALONE_SHELL is defined (i.e. BusyBox can now completely replace
sash). Also fixed it so shell builtins now respect pipes and redirects.
-Erik
2000-05-13 06:33:19 +00:00
Erik Andersen
7ab9c7ee52
Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
...
which lets you compile out most of the "--help" output, saving
up to 17k.
Renamed mnc to nc.
-Erik
2000-05-12 19:41:47 +00:00
Erik Andersen
1d1d95051a
More Doc updates. cmdedit and more termio fixes.
2000-04-21 01:26:49 +00:00
Erik Andersen
a6c752201e
Updates
...
-Erik
2000-04-18 00:00:52 +00:00
John Beppu
6e703034f4
+ no need for comments.
2000-04-17 16:53:45 +00:00
Erik Andersen
e5b6c7dd9c
More updates to the docs, and fixes to sync things with the docs.
...
-Erik
2000-04-17 16:16:10 +00:00
Erik Andersen
61677feff7
Upates to include copyright 2000 to everything
...
-Erik
2000-04-13 01:18:56 +00:00
Erik Andersen
f0657d3229
Some enhancements I've been working on over the weekend,
...
-Erik
2000-04-12 17:49:52 +00:00
Erik Andersen
a2685735b1
Make tab completion an option
...
-Erik
2000-04-09 18:27:46 +00:00
Erik Andersen
f3b3d17060
More minor patches
...
-Erik
2000-04-09 18:24:05 +00:00
Erik Andersen
d4bc1fcad8
Minor noise removal
...
-Erik
2000-04-05 05:19:03 +00:00
Erik Andersen
6acaa40f27
First stages of (re-)writing busybox's tar creation support.
...
-Erik
2000-03-26 14:03:20 +00:00
Erik Andersen
1dbe340eba
more minor fixes
...
-Erik
2000-03-19 10:46:06 +00:00
Erik Andersen
c7c634bd88
Some more stuff.
...
-Erik
2000-03-19 05:28:55 +00:00
Erik Andersen
531bcb6826
Minor update
2000-03-17 20:49:55 +00:00
Erik Andersen
6273f655c8
Several fixes.
...
-Erik
2000-03-17 01:12:41 +00:00
Erik Andersen
161220c498
Fix fg bug
...
-Erik
2000-03-16 08:12:48 +00:00
Erik Andersen
13456d1fcd
Forgot these files...
...
-Erik
2000-03-16 08:09:57 +00:00
Erik Andersen
d75af99529
Major build system updates...
...
-Erik
2000-03-16 08:09:09 +00:00
Erik Andersen
3522eb1ab3
First pass at writing a shell for busybox.
...
Works fine, full job control support, etc.
No syntax yet (if, then, while, etc). Handles
pipes and & processes fine.
TODO: add command editing, add syntax suport.
-Erik
2000-03-12 23:49:18 +00:00