summaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen2001-01-271-1/+1
| | | | | a release. Update the website with release details. -Erik
* Add in a patch to make busybox use the normal pwd.h and grp.hEric Andersen2001-01-271-7/+3
| | | | | | functions. Add in simple implementations of these functions, which can, optionally, be used instead of the system versions. -Erik
* Applied patch from Vladimir N. Oleynik <dzo@simtreas.ru> to do tab-completionMark Whitley2001-01-261-255/+501
| | | | in Busybox shell. (Thanks, Vlad.)
* Fixed a li'l thinko.Mark Whitley2001-01-261-1/+1
|
* #define -> static const int. Also got rid of some big static buffers.Mark Whitley2001-01-232-5/+8
|
* Bug fix.Eric Andersen2001-01-231-2/+0
|
* More printf cleanupsEric Andersen2001-01-201-9/+9
|
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea toMatt Kraai2001-01-181-1/+1
| | | | Vladimir N. Oleynik.
* Needs to be NULL at init in all cases.Eric Andersen2001-01-051-1/+1
|
* Patch from larry doolittle to be ever so careful to cleanupEric Andersen2001-01-051-16/+72
| | | | all open file descriptors, lest wierdness happen later.
* Better label the globals.Eric Andersen2001-01-051-2/+7
|
* Patch from Larry Doolittle to set values to static variables that live in theEric Andersen2001-01-051-2/+15
| | | | | | bss at runtime, since sh.c can call sh.c, which causes these variables to not be set to their defaults as god intended. -Erik
* Fix a segfault by only constructing the prompt when we need to. If we don'tMatt Kraai2001-01-051-2/+2
| | | | do this we will segfault processing /etc/.profile since cwd isn't yet set.
* Move window size handling to cmdedit.c. Move prompt setup to ↵Eric Andersen2001-01-041-53/+33
| | | | setup_prompt_string()
* Update interface per what now exists...Eric Andersen2001-01-041-13/+0
|
* Cleanup -- move win handling to cmdedit.c, static-ify many functions.Eric Andersen2001-01-041-15/+30
|
* Cleanup from Gennady Feldman <gfeldman@mail.com>Eric Andersen2000-12-221-8/+2
|
* Use busybox error handling functions wherever possible.Matt Kraai2000-12-221-5/+5
|
* Another sh.c patch from Larry Doolittle. This makes redirects work properlyEric Andersen2000-12-211-37/+71
| | | | | | | with non-forking shell builtins. Especially helpful for "read". This patch also beautifies builtin_fg_bg, clarifies the problems with run_command_predicate, makes if/then/else support the default, and corrects the sense of the BB_FEATURE_SH_ENVIRONMENT comment.
* Fix a warning in sh.c. Remove use of getline() in md5sum sinceEric Andersen2000-12-201-1/+4
| | | | nobody else uses it and it is a GNU extension anyways...
* Ok, this is a pretty major update to sh.c. I renamed all the variables andEric Andersen2000-12-182-475/+631
| | | | | | | | | | | | function names to conform with the style guide. I also did a lot of work on the if-then-alse-fi logic and added prototype (i.e. it segfaults when enabled) line continuation support. Furthermore, this patch includes Larry Doolittle's work on restructuring some of the data structures that represent the job and child_program, allowing several simplifications and fixing several bugs. -Erik
* Mem leak fix from Matt KraaiEric Andersen2000-12-121-5/+1
|
* Patch from Matt Kraai to fox sh.c escape problem such thatEric Andersen2000-12-111-1/+3
| | | | | running things like 'echo "\n\tHi\n\t\!"' and 'echo -e "\n\tHi\n\t\!"' behave as under bash.
* Put in i to getopt, so i will work...Eric Andersen2000-12-081-1/+1
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-072-18/+18
| | | | compliant with the style guide. Everybody rebuild your tags file!
* 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.