aboutsummaryrefslogtreecommitdiff
path: root/lash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow multiple shells to be enabled.kraai2001-08-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz:andersen2001-07-121-5/+1
| | | | | | | | | | Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function git-svn-id: svn://busybox.net/trunk/busybox@3078 69ca8d6d-28ef-0310-b511-8ec308f3f277
* don't whine if all we need to do is remove a bg jobandersen2001-06-271-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2919 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Re-enable globbing (I'd accidentaly removed it) and finish off the lastandersen2001-06-271-10/+224
| | | | | | | | of the job control polishing. Works fine now. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2916 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This should finish off the job control issues with lash. Make certainandersen2001-06-251-15/+46
| | | | | | | | we have a controlling terminal... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2896 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This commit guts lash, restoring it to what it was originally intended to do,andersen2001-06-211-582/+32
| | | | | | | | | just be a simple command line interpreter with basic pipe, redirect, and job control. For all the more fancy things, people should use hush or ash. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2871 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry to fix some grammar errors.andersen2001-05-231-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bugandersen2001-05-211-3/+3
| | | | | | | #1130 (i.e. When you turn on features it should always ADD features) git-svn-id: svn://busybox.net/trunk/busybox@2690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.ckraai2001-05-161-2/+2
| | | | | | | by Larry Doolittle. git-svn-id: svn://busybox.net/trunk/busybox@2653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up some silly warningsandersen2001-05-111-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2614 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a segfault in lash, hush, and cmdedit. Each of these usedandersen2001-05-111-2/+7
| | | | | | | | | xgetcwd, but did not check the return for a NULL, and then continued to call strlen on the NULL when the cwd had been removed from under it. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Moved some #ifdefs down below #include "busybox.h" where they belong.markw2001-04-251-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2436 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some patches from Gennady Feldman. Fixed a glob problem such thatandersen2001-04-231-5/+5
| | | | | | | | 'ls *.h Config.h' works. Fixed a silly typo with fg/bg process control. Made cmdedit exit sanely when it cannot read input. git-svn-id: svn://busybox.net/trunk/busybox@2402 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another banner consolidation from Larry Doolittle <ldoolitt@recycle.lbl.gov>.kraai2001-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2339 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of '' and "".kraai2001-04-121-4/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2334 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply Vladimir's latest cleanup patch.andersen2001-04-091-22/+15
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid segfault when export is invoked with no arguments. Thanks tokraai2001-04-041-0/+1
| | | | | | | Gennady Feldman. git-svn-id: svn://busybox.net/trunk/busybox@2241 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a new standalone env applet for fixing up app's environmentsandersen2001-03-291-16/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2224 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix to last patch: locale code should be 9, not 7.markw2001-03-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2199 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Vladimir N. Oleynik to add locale support to the shell permarkw2001-03-271-0/+6
| | | | | | | bug report from Ralph Jones. git-svn-id: svn://busybox.net/trunk/busybox@2198 69ca8d6d-28ef-0310-b511-8ec308f3f277
* -Wshadow sh fix from Jeff Garzikandersen2001-03-231-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2190 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A nice patch from Larry Doolittle that adds -Wshadow andandersen2001-03-211-35/+35
| | | | | | | cleans up most of the now-revealed problems. git-svn-id: svn://busybox.net/trunk/busybox@2177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Larry and Vladimir to clean up sh.c and fixandersen2001-03-171-18/+12
| | | | | | | shell expansion to work in non POSIX locales. git-svn-id: svn://busybox.net/trunk/busybox@2127 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Larry for glob problems.andersen2001-03-151-1/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2114 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Reversed previous patch. The right way is to fix uClibc.markw2001-03-151-5/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2100 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Andreas Neuhaus to fix namespace conflict that made busyboxmarkw2001-03-151-0/+5
| | | | | | | not compile with uClibc. git-svn-id: svn://busybox.net/trunk/busybox@2094 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yesterday I make strsep_space include post-token whitespace,andersen2001-03-141-2/+1
| | | | | | | | so we should not be adding another " " between tokens. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2079 69ca8d6d-28ef-0310-b511-8ec308f3f277
* I forgot to malloc space for the NULL.andersen2001-03-141-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2078 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Larry Doolittle to fix '>\na\n' bug. Should close bug #1132markw2001-03-141-3/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2075 69ca8d6d-28ef-0310-b511-8ec308f3f277
* libc5 glob is pretty stupid and doesn't do GLOB_BRACE or GLOB_TILDEandersen2001-03-141-1/+8
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2063 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - Changed name of BB_FEATURE_SIMPLE_PROMPT to BB_FEATURE_SH_SIMPLE_PROMPTmarkw2001-03-141-3/+3
| | | | | | | | | | | | | | - 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. git-svn-id: svn://busybox.net/trunk/busybox@2061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update the lash shell (hopefully the last time...) so things likeandersen2001-03-131-64/+116
| | | | | | | | | echo "foo bar" and echo -n "foo\t\\\\\tbar" work as expected. Merge prompt printing work from Vladimir. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2059 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A fix from Larry Doolittle for some nasty segfaults when sh.c tried to free aandersen2001-03-121-3/+3
| | | | | | | | | corrupted cmd pointer, and where it would truncate a command line at the first double space. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2047 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When using wordexp, only try to use the expand commandandersen2001-03-101-12/+14
| | | | | | | | when something actually got expanded. Skip it otherwise. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2038 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a couple more cases. $FOO/bar ${FOO} and such now workandersen2001-03-091-4/+14
| | | | | | | | | without wordexp. Of course for stuff like ${1:-foo} you still need wordexp for them to work. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2025 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow wordexp to be used if availableandersen2001-03-091-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2024 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Urg. Remove the debug noiseandersen2001-03-091-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2023 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Ok, sh.c should be working now. Many thanks to Larry Doolittleandersen2001-03-091-85/+83
| | | | | | | | | for his timely help -- nearly all of the work in this patch is his. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2022 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix sh.c for the glab case. I was messing things up forandersen2001-03-091-5/+6
| | | | | | | | single argument commands. It should now work as expected... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2019 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A '.' is a legal seperator.andersen2001-03-091-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2018 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup patch from Larryandersen2001-03-091-2/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2016 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in 'trim' routine. Fix up sh.c so it works when wordexpandersen2001-03-081-11/+85
| | | | | | | | is not available. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2015 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remember to delete un-expandable variables, and do a better job of expandingandersen2001-03-081-6/+28
| | | | | | | | | shell-specific things in case the wordexp implementation is broken (ie. the stubbed out wordexp in uClibc). -Erik git-svn-id: svn://busybox.net/trunk/busybox@2011 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rework environment variable handling to use wordexp, per a suggestion fromandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@2010 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove an unused variableandersen2001-03-071-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1995 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the memory leak. No really this time.andersen2001-03-061-7/+9
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1989 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix func prototypeandersen2001-03-061-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1986 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a memory leak in lash. It seems that close_all was calling close()andersen2001-03-061-1/+1
| | | | | | | | | directly instead of calling mark_closed(), which allowed the memory allocated by mark_open() to never be freed. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1985 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Close open files before calling builtin_exec(). I've tested thisandersen2001-03-061-0/+1
| | | | | | | | and it fixes bug #1121. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1984 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This fixes lash so it handles environment variable expansion, regardlessandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1867 69ca8d6d-28ef-0310-b511-8ec308f3f277