summaryrefslogtreecommitdiff
path: root/shell
AgeCommit message (Collapse)Author
2000-12-01Remove #ifdef __STDC__ junk. We don't do K&R round these parts,Eric Andersen
so no point acting like we do.
2000-12-01Stop using TRUE and FALSE for exit status.Matt Kraai
2000-11-30Apply some patches from Gennady Feldman <gfeldman@mail.com> toEric Andersen
. /etc/profile, and to emulate bash prompt. I've cleaned up his patches a bit and all looks good now...
2000-11-30Patch from Larry Doolittle (with minor touchups from me so everything compilesEric Andersen
and works) to use the applet definitions in applets.h to autogenerate the applet function and usage prototypes.
2000-11-30Fix escape char problem.Eric Andersen
2000-11-17"I will always compile before I commit."Eric Andersen
"I will always compile before I commit." "I will always compile before I commit." -Erik
2000-11-17Fix up builtin overrides, and hack in the binary search for findingEric Andersen
matching applets into the shell.
2000-11-17Add in a new FEATURE (off by default) BB_FEATURE_SH_BUILTINS_ALWAYS_WIN.Eric Andersen
Make the sh default to using external commands when a path is provided.
2000-11-14Patch from Gennady Feldman <gfeldman@tradeline.net> to:Eric Andersen
1. Opens redirections w/ the right access. 2. Doesn't do globbing for every single parameter (so it doesn't stat every parameter).
2000-11-07Cleanup of duplicated symbols -- found by compiling withEric Andersen
LDFLAGS += -Wl,-warn-common
2000-11-02Warning cleanup from Gennady FeldmanEric Andersen
-Erik
2000-09-27Consolidate handling of some fopen failures.Matt Kraai
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-09-21Add in exec support (patch from Torbj?rn Axelsson <torax@cendio.se>)Eric Andersen
and disable backticks (since they are still wierdly broken in some cases.
2000-09-19I think these featires are fairly safe...Eric Andersen
-Erik
2000-09-19Avoid segfaults by not using snprintf to copy strings.Matt Kraai
2000-09-15"exit NUMBER" should exit, not returnPavel Roskin
2000-09-14Backslashes shouldn't be treated as backticks.Matt Kraai
2000-09-14Copy the string terminator.Matt Kraai
2000-09-13Don't fork for the . (source) command so that environment settings areMatt Kraai
preserved.
2000-09-13Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai
segfaulting or handling errors the same way themselves.
2000-09-13Fix unchecked calls to {m,c,re}alloc so that they print an error andMatt Kraai
exit rather than segfaulting (what an improvement).
2000-09-06Reset optind so that getopt works in busybox applets called directly by sh.Matt Kraai
Change the behavior of -c to correctly handle $1..$9.
2000-08-21Turn off some debug noise.Eric Andersen
-Erik
2000-07-28Clean up the nasty blunder I'd made of how different behaviors happen.Eric Andersen
-Erik
2000-07-28Oops. Forgot an ifdefEric Andersen
-Erik
2000-07-28More sh updates (with related changes to everything else). SwitchedEric Andersen
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-27More shell features.... if-then-else-fi is now basically usable (disableEric Andersen
by default pending further debugging). Added in some basic shell environment support (i.e. $?, $0-$9, $$, $!, $#). -Erik
2000-07-26Minor style cleanups.Eric Andersen
2000-07-25Finish off fixing up the memleaks (I think). Added the beginnings ofEric Andersen
some if-then-else-fi support (nonfunctional and turned off) -Erik
2000-07-25Use BB_FEATURE_CLEAN_UP where appropriateEric Andersen
-Erik
2000-07-19Avoid trying to free NULL ptrs. Comment on malloc usages.Eric Andersen
-Erik
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-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-16Extract usage information into a separate file.Matt Kraai
2000-07-14More 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-13Added a smallish TODO comment.Mark Whitley
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-12Always report the applet name when doing error reporting.Matt Kraai
2000-07-10Function name cleanup.Eric Andersen
-Erik
2000-07-07Naming fixEric Andersen
-Erik
2000-07-06Had an extra tcsetpgrp.Eric Andersen
-Erik
2000-07-04Fixed a potential infinite loop. First delete any chars after theEric Andersen
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-03sh fixes from Marius Groeger <mag@sysgo.de>Eric Andersen
-Erik
2000-06-28* Fixed a _horrible_ bug where 'tar -tvf' could unlinkEric Andersen
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-19Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik