aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
AgeCommit message (Collapse)Author
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
2001-03-06Close open files before calling builtin_exec(). I've tested thisEric Andersen
and it fixes bug #1121. -Erik
2001-02-20This fixes lash so it handles environment variable expansion, regardlessEric Andersen
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
2001-02-16Commit Vladimir's latest cmdedit. I modified it slightly to ensureEric Andersen
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.
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-02-01Apply a patch from Larry Doolittle to add "-all" and "-none" switchesEric Andersen
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
2001-02-01Create find_applet_by_name function. Save 32 bytes.Matt Kraai
2001-01-31Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai
2001-01-30Patch from Bryan Rittmeyer -- be more conservative by defaultEric Andersen
with the lash prompt. -Erik
2001-01-27Fix up copyright msgs. Bump version to 0.49 in preparation forEric Andersen
a release. Update the website with release details. -Erik
2001-01-26Fixed a li'l thinko.Mark Whitley
2001-01-23#define -> static const int. Also got rid of some big static buffers.Mark Whitley
2001-01-23Bug fix.Eric Andersen
2001-01-20More printf cleanupsEric Andersen
2001-01-05Needs to be NULL at init in all cases.Eric Andersen
2001-01-05Patch from larry doolittle to be ever so careful to cleanupEric Andersen
all open file descriptors, lest wierdness happen later.
2001-01-05Better label the globals.Eric Andersen
2001-01-05Patch from Larry Doolittle to set values to static variables that live in theEric Andersen
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
2001-01-05Fix a segfault by only constructing the prompt when we need to. If we don'tMatt Kraai
do this we will segfault processing /etc/.profile since cwd isn't yet set.
2001-01-04Move window size handling to cmdedit.c. Move prompt setup to ↵Eric Andersen
setup_prompt_string()
2000-12-22Cleanup from Gennady Feldman <gfeldman@mail.com>Eric Andersen
2000-12-22Use busybox error handling functions wherever possible.Matt Kraai
2000-12-21Another sh.c patch from Larry Doolittle. This makes redirects work properlyEric Andersen
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.
2000-12-20Fix a warning in sh.c. Remove use of getline() in md5sum sinceEric Andersen
nobody else uses it and it is a GNU extension anyways...
2000-12-18Ok, this is a pretty major update to sh.c. I renamed all the variables andEric Andersen
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
2000-12-12Mem leak fix from Matt KraaiEric Andersen
2000-12-11Patch from Matt Kraai to fox sh.c escape problem such thatEric Andersen
running things like 'echo "\n\tHi\n\t\!"' and 'echo -e "\n\tHi\n\t\!"' behave as under bash.
2000-12-08Put in i to getopt, so i will work...Eric Andersen
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!