aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.c
AgeCommit message (Collapse)Author
2007-03-20fix accumulated whitespace and indentation damageDenis Vlasenko
2007-03-09add STANDALONE supportMike Frysinger
2007-03-07clean up accumulated whitespace damageDenis Vlasenko
2007-02-09msh: fix my bugletDenis Vlasenko
2007-02-04find: support for !Denis Vlasenko
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-02-01msh: cleaning up for -Wwrite-strings part #4Denis Vlasenko
2007-02-01msh: cleaning up for -Wwrite-strings part #3Denis Vlasenko
2007-02-01msh: cleaning up for -Wwrite-strings part #2Denis Vlasenko
2007-02-01msh: cleaning up for -Wwrite-stringsDenis Vlasenko
2007-01-29preparatory patch for -Wwrite-strings #2Denis Vlasenko
2007-01-22cmdedit is not a 'command' editing anymore, it's just editing (generic),Denis Vlasenko
so rename stuff accordingly.
2007-01-22Convert cmdedit into more generic line input facilityDenis Vlasenko
(make history and completion optional at runtime). Use it for fdisk, as an example. Some unrelated fixes in fdisk are also here.
2007-01-01stty: fix width of a field for ppc32Denis Vlasenko
sort: fix -u to match coreutils 6.3 msh: compile fix (my fault)
2007-01-01msh: double "static char line[LINELIM]" etc deleted.Denis Vlasenko
massive amounts of assignments-in-ifs deleted (some of which were VERY nasty)
2006-12-24random tiny size savingsDenis Vlasenko
2006-12-16inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko
2006-11-27style cleanup: return(a) -> return a, part 2Denis Vlasenko
2006-11-27style cleanup: return(a) -> return a, part 1Denis Vlasenko
2006-11-18rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko
2006-11-15remove duplicate flag declsMike Frysinger
2006-10-26silly size savings and capitalization fixesDenis Vlasenko
2006-10-14add open_read_close() and similar stuffDenis Vlasenko
2006-08-10Make a warning go away when standalone shell is disabled.Rob Landley
2006-07-12A couple things that got tangled up in my tree, easier to check in both thanRob Landley
untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree.
2006-07-01Get rid of all "#if 0" content."Robert P. J. Day"
2006-07-01Remove all usage of the "register" storage class specifier."Robert P. J. Day"
2006-06-26dont setpgrp() for now as it breaks system() and that is more important than ↵Mike Frysinger
ctrl+c handling of background processes
2006-06-25- convert old-style parameter declarations (K&R) to modern style.Bernhard Reutner-Fischer
2006-06-20assign default debug level to the MSHDEBUG defineMike Frysinger
2006-06-14Upgrade the standalone shell code to use CONFIG_BUSYBOX_EXEC_PATH.Rob Landley
2006-06-06make the default prompt suck less when using fancy promptsMike Frysinger
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-06-02use xmalloc()Mike Frysinger
2006-05-26- use portability wrapper define bb_setpgrp.Bernhard Reutner-Fischer
2006-05-05didnt mean to commit debug enableMike Frysinger
2006-05-05use %p when printing pointers, not %xMike Frysinger
2006-05-05fix Bug 659 as reported by Robin GetzMike Frysinger
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-02-16moved BB_BANNER to applets/version.c file: make kernel like version, "Vladimir N. Oleynik"
removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h
2006-01-30fix up yet more annoying signed/unsigned and mixed type errorsEric Andersen
2006-01-25just whitespaceTim Riker
2005-10-17data --> text"Vladimir N. Oleynik"
2005-10-12usage bb_dev_null"Vladimir N. Oleynik"
2005-09-22Reduce exported from msh applet"Vladimir N. Oleynik"
2005-07-20applyinf fix for:Paul Fox
0000155: variable expansion with braces in backticks in msh
2004-09-02Jonas Holmberg from axis dot com writes:Eric Andersen
This patch makes msh handle variable expansion within backticks more correctly. Current behaviour (wrong): -------------------------- BusyBox v1.00-rc3 (2004.08.26-11:51+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. $ A='`echo hello`' $ echo $A `echo hello` $ echo `echo $A` hello $ New behaviour (correct): ------------------------ BusyBox v1.00-rc3 (2004.08.26-11:51+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. $ A='`echo hello`' $ echo $A `echo hello` $ echo `echo $A` `echo hello` $ The current behaviour (wrong according to standards) was actually my fault. msh handles backticks by executing a subshell (which makes it work on MMU-less systems). Executing a subshell makes it hard to only expand variables once in the parent. Therefore I export all variables that will be expanded within the backticks and let the subshell handle the expansion instead. The bug was found while searching for security leaks in CGI-scripts. Current behaviour of msh makes it easy to expand backticks by mistake in $QUERY_STRING. I recommend appling the patch before release of bb 1.00. /Jonas
2004-08-27Quiet a few warningsEric Andersen
2004-08-04Michael Leibow, MichaelLe at belkin.com writes:Eric Andersen
A question was posted a month ago by Mark Alamo to see if others had problems with sourcing subscripts within msh. We asked his firm to fix the msh.c bug he described because we didn't have enough time to do it ourselves. When msh.c is executing a compound statement and there is a . command to source another script file, msh.c will not execute the subscript until it's completed executing the rest of the compound statement. His example was this: Echo "Start" ; . ./subA; echo "mid" ; . ./subB ; echo "end" subA and subB execute AFTER end is printed in reverse order. The same is true if the sourced files are inside an if else fi, case esac, or any compound statement. Attached is a patch to msh.c. It fixes the problem. Cd to the root of your busybox tree and execute "patch -p1 < msh.c.patch" Unfortunately, I won't have more time to work on this so I hope that there aren't any problems! Michael Leibow Senior Software Engineer Belkin Corporation
2004-08-04Run msh through indentEric Andersen