aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Bettwr document the hidden internal sh.c #defines, and which folksEric Andersen2000-12-061-2/+10
| | | | might want to use...
* patch from Larry Doolittle to rename BB_FEATURE_SH_BUILTINS_ALWAYS_WINEric Andersen2000-12-061-2/+2
| | | | to the more pedantically correct BB_FEATURE_SH_APPLETS_ALWAYS_WIN.
* Remove #ifdef __STDC__ junk. We don't do K&R round these parts,Eric Andersen2000-12-011-14/+2
| | | | so no point acting like we do.
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-012-22/+22
|
* Apply some patches from Gennady Feldman <gfeldman@mail.com> toEric Andersen2000-11-301-39/+65
| | | | | . /etc/profile, and to emulate bash prompt. I've cleaned up his patches a bit and all looks good now...
* Patch from Larry Doolittle (with minor touchups from me so everything compilesEric Andersen2000-11-301-0/+1
| | | | | and works) to use the applet definitions in applets.h to autogenerate the applet function and usage prototypes.
* Fix escape char problem.Eric Andersen2000-11-301-4/+13
|
* "I will always compile before I commit."Eric Andersen2000-11-171-1/+1
| | | | | | "I will always compile before I commit." "I will always compile before I commit." -Erik
* Fix up builtin overrides, and hack in the binary search for findingEric Andersen2000-11-171-28/+32
| | | | matching applets into the shell.
* Add in a new FEATURE (off by default) BB_FEATURE_SH_BUILTINS_ALWAYS_WIN.Eric Andersen2000-11-171-1/+18
| | | | Make the sh default to using external commands when a path is provided.
* Patch from Gennady Feldman <gfeldman@tradeline.net> to:Eric Andersen2000-11-141-23/+34
| | | | | | 1. Opens redirections w/ the right access. 2. Doesn't do globbing for every single parameter (so it doesn't stat every parameter).
* Cleanup of duplicated symbols -- found by compiling withEric Andersen2000-11-071-1/+1
| | | | LDFLAGS += -Wl,-warn-common
* Warning cleanup from Gennady FeldmanEric Andersen2000-11-021-9/+10
| | | | -Erik
* Consolidate handling of some fopen failures.Matt Kraai2000-09-271-4/+1
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-252-2/+2
| | | | -Erik
* Add in exec support (patch from Torbj?rn Axelsson <torax@cendio.se>)Eric Andersen2000-09-211-1/+16
| | | | | and disable backticks (since they are still wierdly broken in some cases.
* I think these featires are fairly safe...Eric Andersen2000-09-191-2/+2
| | | | -Erik
* Avoid segfaults by not using snprintf to copy strings.Matt Kraai2000-09-191-1/+2
|
* "exit NUMBER" should exit, not returnPavel Roskin2000-09-151-1/+1
|
* Backslashes shouldn't be treated as backticks.Matt Kraai2000-09-141-10/+11
|
* Copy the string terminator.Matt Kraai2000-09-141-1/+1
|
* Don't fork for the . (source) command so that environment settings areMatt Kraai2000-09-131-1/+2
| | | | preserved.
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai2000-09-131-7/+7
| | | | segfaulting or handling errors the same way themselves.
* Fix unchecked calls to {m,c,re}alloc so that they print an error andMatt Kraai2000-09-131-16/+15
| | | | exit rather than segfaulting (what an improvement).
* Reset optind so that getopt works in busybox applets called directly by sh.Matt Kraai2000-09-061-17/+7
| | | | Change the behavior of -c to correctly handle $1..$9.
* Turn off some debug noise.Eric Andersen2000-08-211-2/+2
| | | | -Erik
* Clean up the nasty blunder I'd made of how different behaviors happen.Eric Andersen2000-07-281-14/+16
| | | | -Erik
* Oops. Forgot an ifdefEric Andersen2000-07-281-0/+2
| | | | -Erik
* More sh updates (with related changes to everything else). SwitchedEric Andersen2000-07-283-62/+143
| | | | | | to using getopt and cleaned up the resulting mess. if-then-else-fi is now basically working (given a bunch of constraints). -Erik
* More shell features.... if-then-else-fi is now basically usable (disableEric Andersen2000-07-271-113/+239
| | | | | | by default pending further debugging). Added in some basic shell environment support (i.e. $?, $0-$9, $$, $!, $#). -Erik
* Minor style cleanups.Eric Andersen2000-07-261-8/+9
|
* Finish off fixing up the memleaks (I think). Added the beginnings ofEric Andersen2000-07-251-38/+123
| | | | | some if-then-else-fi support (nonfunctional and turned off) -Erik
* Use BB_FEATURE_CLEAN_UP where appropriateEric Andersen2000-07-251-0/+12
| | | | -Erik
* Avoid trying to free NULL ptrs. Comment on malloc usages.Eric Andersen2000-07-191-4/+6
| | | | -Erik
* Sigh -- can't sleep. Clean up some mem leaks, fixed some bugs.Eric Andersen2000-07-181-39/+43
| | | | -Erik
* New message added to messages.c: full_versionPavel Roskin2000-07-171-1/+5
| | | | Used where possible
* Backtick support to infinite (memory limited) levels of nesting isEric Andersen2000-07-171-30/+85
| | | | | | | | | | | | 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
* Extract usage information into a separate file.Matt Kraai2000-07-161-8/+0
|
* More cleanups.Eric Andersen2000-07-141-3/+3
| | | | -Erik
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-10/+10
|
* Fix some stupid memory bugs.Eric Andersen2000-07-141-2/+1
| | | | -Erik
* Add in redimentary backtick suport (doesn't work properly yet, but isEric Andersen2000-07-141-40/+73
| | | | | close). -Erik
* Added a smallish TODO comment.Mark Whitley2000-07-131-0/+5
|
* Added some smallish comments to help folks understand why we have two tablesMark Whitley2000-07-121-2/+5
| | | | of builtins and the reasoning behind it.
* Always report the applet name when doing error reporting.Matt Kraai2000-07-121-5/+5
|
* Function name cleanup.Eric Andersen2000-07-101-41/+45
| | | | -Erik
* Naming fixEric Andersen2000-07-071-3/+3
| | | | -Erik
* Had an extra tcsetpgrp.Eric Andersen2000-07-061-4/+0
| | | | -Erik
* Fixed a potential infinite loop. First delete any chars after theEric Andersen2000-07-041-1/+10
| | | | | | | 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
* sh fixes from Marius Groeger <mag@sysgo.de>Eric Andersen2000-07-031-12/+67
| | | | -Erik