summaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Apply Vladimir's latest cleanup patch.Eric Andersen2001-04-092-174/+112
| | | | -Erik
* Add support of /W promptsEric Andersen2001-04-051-0/+13
| | | | -Erik
* Avoid segfault when export is invoked with no arguments. Thanks toMatt Kraai2001-04-041-0/+1
| | | | Gennady Feldman.
* Add in a new standalone env applet for fixing up app's environmentsEric Andersen2001-03-291-16/+5
| | | | -Erik
* Fix to last patch: locale code should be 9, not 7.Mark Whitley2001-03-271-1/+1
|
* Applied patch from Vladimir N. Oleynik to add locale support to the shell perMark Whitley2001-03-271-0/+6
| | | | bug report from Ralph Jones.
* -Wshadow sh fix from Jeff GarzikEric Andersen2001-03-231-2/+2
|
* A nice patch from Larry Doolittle that adds -Wshadow andEric Andersen2001-03-211-35/+35
| | | | cleans up most of the now-revealed problems.
* Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>Eric Andersen2001-03-191-1/+1
|
* Fix to cmdedit.c from VladimirEric Andersen2001-03-191-0/+1
|
* Patch from Larry and Vladimir to clean up sh.c and fixEric Andersen2001-03-171-18/+12
| | | | shell expansion to work in non POSIX locales.
* Fix from Larry for glob problems.Eric Andersen2001-03-151-1/+5
| | | | -Erik
* cmdedit.c bugfix patch from Vladimir.Eric Andersen2001-03-151-12/+14
| | | | -Erik
* Reversed previous patch. The right way is to fix uClibc.Mark Whitley2001-03-151-5/+0
|
* Applied patch from Andreas Neuhaus to fix namespace conflict that made busyboxMark Whitley2001-03-151-0/+5
| | | | not compile with uClibc.
* Yesterday I make strsep_space include post-token whitespace,Eric Andersen2001-03-141-2/+1
| | | | | so we should not be adding another " " between tokens. -Erik
* I forgot to malloc space for the NULL.Eric Andersen2001-03-141-1/+1
| | | | -Erik
* Applied patch from Larry Doolittle to fix '>\na\n' bug. Should close bug #1132Mark Whitley2001-03-141-3/+8
|
* libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDEEric Andersen2001-03-141-1/+8
| | | | -Erik
* - Changed name of BB_FEATURE_SIMPLE_PROMPT to BB_FEATURE_SH_SIMPLE_PROMPTMark Whitley2001-03-142-11/+11
| | | | | | | | | | | - 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.
* Update the lash shell (hopefully the last time...) so things likeEric Andersen2001-03-133-142/+216
| | | | | | echo "foo bar" and echo -n "foo\t\\\\\tbar" work as expected. Merge prompt printing work from Vladimir. -Erik
* A fix from Larry Doolittle for some nasty segfaults when sh.c tried to free aEric Andersen2001-03-121-3/+3
| | | | | | corrupted cmd pointer, and where it would truncate a command line at the first double space. -Erik
* When using wordexp, only try to use the expand commandEric Andersen2001-03-101-12/+14
| | | | | when something actually got expanded. Skip it otherwise. -Erik
* Fixed a couple more cases. $FOO/bar ${FOO} and such now workEric Andersen2001-03-091-4/+14
| | | | | | without wordexp. Of course for stuff like ${1:-foo} you still need wordexp for them to work. -Erik
* Allow wordexp to be used if availableEric Andersen2001-03-091-2/+2
|
* Urg. Remove the debug noiseEric Andersen2001-03-091-1/+0
|
* Ok, sh.c should be working now. Many thanks to Larry DoolittleEric Andersen2001-03-091-85/+83
| | | | | | for his timely help -- nearly all of the work in this patch is his. -Erik
* Fix sh.c for the glab case. I was messing things up forEric Andersen2001-03-091-5/+6
| | | | | single argument commands. It should now work as expected... -Erik
* A '.' is a legal seperator.Eric Andersen2001-03-091-2/+2
|
* Cleanup patch from LarryEric Andersen2001-03-091-2/+5
|
* Add in 'trim' routine. Fix up sh.c so it works when wordexpEric Andersen2001-03-081-11/+85
| | | | | is not available. -Erik
* Whitespace / formatting / bracket cleanup.Mark Whitley2001-03-081-5/+7
|
* Remember to delete un-expandable variables, and do a better job of expandingEric Andersen2001-03-081-6/+28
| | | | | | shell-specific things in case the wordexp implementation is broken (ie. the stubbed out wordexp in uClibc). -Erik
* Rework environment variable handling to use wordexp, per a suggestion fromEric Andersen2001-03-081-108/+83
| | | | | | | | | Larry Doolittle a couple of months ago. This makes the stuff-expansion in lash be ever so standards compliant. This change needs testing by everyone, but appears to be solid enough to let us close bug #1090. It works for me; however, please test this change! -Erik
* remove an unused variableEric Andersen2001-03-071-1/+0
|
* Fix the memory leak. No really this time.Eric Andersen2001-03-061-7/+9
| | | | -Erik
* Fix func prototypeEric Andersen2001-03-061-0/+1
|
* Fixed a memory leak in lash. It seems that close_all was calling close()Eric Andersen2001-03-061-1/+1
| | | | | | directly instead of calling mark_closed(), which allowed the memory allocated by mark_open() to never be freed. -Erik
* Close open files before calling builtin_exec(). I've tested thisEric Andersen2001-03-061-0/+1
| | | | | and it fixes bug #1121. -Erik
* Oops. Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put itEric Andersen2001-02-201-6/+5
| | | | after busybox.h is included.
* This fixes lash so it handles environment variable expansion, regardlessEric Andersen2001-02-201-17/+30
| | | | | | | | of where the environment variables are located in an argument. This allows things like 'echo foo$1$SHELL' to expand the same way bash would expand it. Of course, to make this work I introduced a memory leak, and I am too tired to find a way to fix it. -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-15/+15
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* Put back Vladimir's testing defines, which I mistakenly removed.Eric Andersen2001-02-181-4/+6
|
* Several features were hard coded on. Stop that. List tab completionEric Andersen2001-02-161-12/+8
| | | | | as working (thanks Vladimir!) and taking 4k. -Erik
* Commit Vladimir's latest cmdedit. I modified it slightly to ensureEric Andersen2001-02-162-8/+8
| | | | | | | | parse_prompt() would be called before cmdedit_init(), since cmdedit_init() calls cmdedit_setwidth() which uses cmdedit_prmt_len, which is set by parse_prompt(). Also, added a mod, so very narrow terminals should now wrap properly... This is working very nicely for me -- Vladimir has done some very good work.
* Make ar be crossed.Eric Andersen2001-02-161-493/+1028
|
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-10/+7
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesEric Andersen2001-02-012-1/+4
| | | | | | | to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik
* Create find_applet_by_name function. Save 32 bytes.Matt Kraai2001-02-011-7/+5
|
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-312-16/+16
|