aboutsummaryrefslogtreecommitdiff
path: root/lash.c
AgeCommit message (Collapse)Author
2001-10-03Patch from Magnus Damm <damm@opensource.se> to avoid lash hangingEric Andersen
on serial ports
2001-08-22Fix a warning and potential segfault in lash when BB_FEATURE_CLEAN_UPEric Andersen
is enabled
2001-08-01Allow multiple shells to be enabled.Matt Kraai
2001-07-12Patch from vodz:Eric Andersen
Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function
2001-06-27don't whine if all we need to do is remove a bg jobEric Andersen
2001-06-27Re-enable globbing (I'd accidentaly removed it) and finish off the lastEric Andersen
of the job control polishing. Works fine now. -Erik
2001-06-25This should finish off the job control issues with lash. Make certainEric Andersen
we have a controlling terminal... -Erik
2001-06-21This commit guts lash, restoring it to what it was originally intended to do,Eric Andersen
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
2001-05-23Patch from larry to fix some grammar errors.Eric Andersen
2001-05-21Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bugEric Andersen
#1130 (i.e. When you turn on features it should always ADD features)
2001-05-16Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai
by Larry Doolittle.
2001-05-11Fix up some silly warningsEric Andersen
2001-05-11Fix a segfault in lash, hush, and cmdedit. Each of these usedEric Andersen
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
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-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-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-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
2001-03-09Urg. Remove the debug noiseEric Andersen
2001-03-09Ok, sh.c should be working now. Many thanks to Larry DoolittleEric Andersen
for his timely help -- nearly all of the work in this patch is his. -Erik
2001-03-09Fix sh.c for the glab case. I was messing things up forEric Andersen
single argument commands. It should now work as expected... -Erik
2001-03-09A '.' is a legal seperator.Eric Andersen
2001-03-09Cleanup patch from LarryEric Andersen
2001-03-08Add in 'trim' routine. Fix up sh.c so it works when wordexpEric Andersen
is not available. -Erik
2001-03-08Remember to delete un-expandable variables, and do a better job of expandingEric Andersen
shell-specific things in case the wordexp implementation is broken (ie. the stubbed out wordexp in uClibc). -Erik
2001-03-08Rework environment variable handling to use wordexp, per a suggestion fromEric Andersen
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
2001-03-07remove an unused variableEric Andersen
2001-03-06Fix the memory leak. No really this time.Eric Andersen
-Erik
2001-03-06Fix func prototypeEric Andersen
2001-03-06Fixed a memory leak in lash. It seems that close_all was calling close()Eric Andersen
directly instead of calling mark_closed(), which allowed the memory allocated by mark_open() to never be freed. -Erik