aboutsummaryrefslogtreecommitdiff
path: root/shell
AgeCommit message (Collapse)Author
2001-05-11Use xgetcwdEric Andersen
2001-05-08A few more structural updates for job control.Eric Andersen
-Erik
2001-05-08Fix a stupid segfault caused by dereferencing a NULL ptr.Eric Andersen
-Erik
2001-05-07This patch from Evin Robertson <nitfol@my-deja.com> fixes export so it works.Eric Andersen
This way leaks memory, but oh well. We will probably fix that when we get around to doing local variables.
2001-05-07More hush updates from Larry:Eric Andersen
Update some comments. Generate partial placeholders for the missing builtins. Write builtin_umask. Properly treat exec without arguments as a means to open/close files within the running script. Implement "4<&-" that encodes for file descriptor closure.
2001-05-04Larry's variant on Evin Robertson's fix to what I messed upEric Andersen
trying to make job control work. This fix makes it so that hush doesn't error out when init hasn't set up job control, as in when init=/bin/sh
2001-05-04Don't reset parents context when we encounter an terminator. FixesMatt Kraai
if true; then if true; then true; fi; fi
2001-05-04If it fails to run a builtin, let it fall through toEric Andersen
exec the real thing. -Erik
2001-05-02Move up waitpid error check so that errno isn't clobbered by tcsetpgrp.Matt Kraai
2001-05-02Some more job control updates. It will now sucessfully backgroundEric Andersen
stuff. Good luck getting things back into the foreground though... -Erik
2001-05-02Don't treat newline as pipe separator when processing substitutions.Matt Kraai
2001-05-02Fix $(...) construction. Noted and patched by Larry DoolittleMatt Kraai
<ldoolitt@recycle.lbl.gov>. I'm just a patch whore. :)
2001-05-02First pass at getting job control working. This gets the infrastructureEric Andersen
in place, but something is still missing/wrong in there. Testing with 'grep foo &' seems to put _hush_ into the background. Pondering... -Erik
2001-05-02Use the current pgrp, not pid, when resetting the foreground process group.Matt Kraai
Fixes bizarre suspension when executing `echo`.
2001-05-02Don't segfault if the first word is the empty string.Matt Kraai
2001-05-02Another update from Larry:Eric Andersen
Makes hush return code equal to that of the last command executed. Fixes the mode where input comes from a file.
2001-05-01Another hush update from Larry:Eric Andersen
Minor improvements. Something is still broken with running scripts via "hush filename". All the following are now handled acceptably (matches ash, not bash). if true; then echo foo1; fi if true; then echo foo2; fi if true; false; then echo bar; else echo foo3; fi if true || false; then echo foo4; fi - Larry
2001-04-30Some more hush.c updates from Larry Doolittle.Eric Andersen
2001-04-27Use BUFSIZ for the_command to match size used in cmdeditEric Andersen
2001-04-27An update to hush from Larry:Eric Andersen
It should recover more smoothly from syntax errors, and it now has a decent guess when the reserved word construct is over (or not) to control execution and prompting. I took out all the redundant standalone test copies of libbb routines, but left in a hook so I can include those for my testing. I'll post that include file on my web site. - Larry
2001-04-26This is the initial checkin of Larry Doolittle's hush.c, using hisEric Andersen
April 25, 2001 snapshot, adjusted a bit by me so it has cmdedit support. This checkin also removes sh.c. In the future sh.c will be a symlink to your shell of choice. For now, this symlink will default to pointing to lash.c (as in the past). If you change the symlink to point to hush.c, then thats what you will get. This symlink business is a temporary situation, which will be cleaned up Real Soon Now(tm). -Erik
2001-04-25Moved some #ifdefs down below #include "busybox.h" where they belong.Mark Whitley
2001-04-23Some patches from Gennady Feldman. Fixed a glob problem such thatEric Andersen
'ls *.h Config.h' works. Fixed a silly typo with fg/bg process control. Made cmdedit exit sanely when it cannot read input.
2001-04-12Another banner consolidation from Larry Doolittle <ldoolitt@recycle.lbl.gov>.Matt Kraai
2001-04-12Fix handling of '' and "".Matt Kraai
2001-04-09Apply Vladimir's latest cleanup patch.Eric Andersen
-Erik
2001-04-05Add support of /W promptsEric Andersen
-Erik
2001-04-04Avoid segfault when export is invoked with no arguments. Thanks toMatt Kraai
Gennady Feldman.
2001-03-29Add in a new standalone env applet for fixing up app's environmentsEric Andersen
-Erik
2001-03-27Fix to last patch: locale code should be 9, not 7.Mark Whitley
2001-03-27Applied patch from Vladimir N. Oleynik to add locale support to the shell perMark Whitley
bug report from Ralph Jones.
2001-03-23-Wshadow sh fix from Jeff GarzikEric Andersen
2001-03-21A nice patch from Larry Doolittle that adds -Wshadow andEric Andersen
cleans up most of the now-revealed problems.
2001-03-19Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>Eric Andersen
2001-03-19Fix to cmdedit.c from VladimirEric Andersen
2001-03-17Patch from Larry and Vladimir to clean up sh.c and fixEric Andersen
shell expansion to work in non POSIX locales.
2001-03-15Fix from Larry for glob problems.Eric Andersen
-Erik
2001-03-15cmdedit.c bugfix patch from Vladimir.Eric Andersen
-Erik
2001-03-15Reversed previous patch. The right way is to fix uClibc.Mark Whitley
2001-03-15Applied patch from Andreas Neuhaus to fix namespace conflict that made busyboxMark Whitley
not compile with uClibc.
2001-03-14Yesterday I make strsep_space include post-token whitespace,Eric Andersen
so we should not be adding another " " between tokens. -Erik
2001-03-14I forgot to malloc space for the NULL.Eric Andersen
-Erik
2001-03-14Applied patch from Larry Doolittle to fix '>\na\n' bug. Should close bug #1132Mark Whitley
2001-03-14libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDEEric Andersen
-Erik
2001-03-14 - Changed name of BB_FEATURE_SIMPLE_PROMPT to BB_FEATURE_SH_SIMPLE_PROMPTMark Whitley
- Set BB_FEATURE_SH_STANDALONE_SHELL and BB_FEATURE_SH_APPLETS_ALWAYS_WIN to be off by default - Set BB_FEATURE_SH_SIMPLE_PROMPT to be on by default - Added some more magic to the Olympus section to make all the dependencies on the shell, cmdline editing, tab completion and friend work properly. - Tidied up the Olympus section with some whitespace. Checked the various scrips that parse through there and the extra whitespace shouldn't break anything.
2001-03-13Update the lash shell (hopefully the last time...) so things likeEric Andersen
echo "foo bar" and echo -n "foo\t\\\\\tbar" work as expected. Merge prompt printing work from Vladimir. -Erik
2001-03-12A fix from Larry Doolittle for some nasty segfaults when sh.c tried to free aEric Andersen
corrupted cmd pointer, and where it would truncate a command line at the first double space. -Erik
2001-03-10When using wordexp, only try to use the expand commandEric Andersen
when something actually got expanded. Skip it otherwise. -Erik
2001-03-09Fixed a couple more cases. $FOO/bar ${FOO} and such now workEric Andersen
without wordexp. Of course for stuff like ${1:-foo} you still need wordexp for them to work. -Erik
2001-03-09Allow wordexp to be used if availableEric Andersen