aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add STANDALONE supportMike Frysinger2007-03-091-5/+73
|
* clean up accumulated whitespace damageDenis Vlasenko2007-03-071-1/+1
|
* msh: fix my bugletDenis Vlasenko2007-02-091-5/+8
|
* find: support for !Denis Vlasenko2007-02-041-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* msh: cleaning up for -Wwrite-strings part #4Denis Vlasenko2007-02-011-270/+287
|
* msh: cleaning up for -Wwrite-strings part #3Denis Vlasenko2007-02-011-61/+57
|
* msh: cleaning up for -Wwrite-strings part #2Denis Vlasenko2007-02-011-675/+648
|
* msh: cleaning up for -Wwrite-stringsDenis Vlasenko2007-02-011-196/+236
|
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-14/+14
|
* cmdedit is not a 'command' editing anymore, it's just editing (generic),Denis Vlasenko2007-01-221-14/+14
| | | | so rename stuff accordingly.
* Convert cmdedit into more generic line input facilityDenis Vlasenko2007-01-221-10/+16
| | | | | | (make history and completion optional at runtime). Use it for fdisk, as an example. Some unrelated fixes in fdisk are also here.
* stty: fix width of a field for ppc32Denis Vlasenko2007-01-011-2/+5
| | | | | sort: fix -u to match coreutils 6.3 msh: compile fix (my fault)
* msh: double "static char line[LINELIM]" etc deleted.Denis Vlasenko2007-01-011-87/+138
| | | | | massive amounts of assignments-in-ifs deleted (some of which were VERY nasty)
* random tiny size savingsDenis Vlasenko2006-12-241-5/+3
|
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-1/+1
|
* style cleanup: return(a) -> return a, part 2Denis Vlasenko2006-11-271-139/+140
|
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-89/+89
|
* rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko2006-11-181-1/+1
|
* remove duplicate flag declsMike Frysinger2006-11-151-3/+3
|
* silly size savings and capitalization fixesDenis Vlasenko2006-10-261-2/+2
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-3/+3
|
* Make a warning go away when standalone shell is disabled.Rob Landley2006-08-101-9/+8
|
* A couple things that got tangled up in my tree, easier to check in both thanRob Landley2006-07-121-40/+1
| | | | | | | | | | | | | | 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.
* Get rid of all "#if 0" content."Robert P. J. Day"2006-07-011-44/+0
|
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-212/+207
|
* dont setpgrp() for now as it breaks system() and that is more important than ↵Mike Frysinger2006-06-261-4/+0
| | | | ctrl+c handling of background processes
* - convert old-style parameter declarations (K&R) to modern style.Bernhard Reutner-Fischer2006-06-251-310/+151
|
* assign default debug level to the MSHDEBUG defineMike Frysinger2006-06-201-2/+1
|
* Upgrade the standalone shell code to use CONFIG_BUSYBOX_EXEC_PATH.Rob Landley2006-06-141-2/+1
|
* make the default prompt suck less when using fancy promptsMike Frysinger2006-06-061-2/+11
|
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-021-1/+1
| | | | and eventual platform specific includes in early.
* use xmalloc()Mike Frysinger2006-06-021-1/+1
|
* - use portability wrapper define bb_setpgrp.Bernhard Reutner-Fischer2006-05-261-1/+1
|
* didnt mean to commit debug enableMike Frysinger2006-05-051-1/+1
|
* use %p when printing pointers, not %xMike Frysinger2006-05-051-52/+54
|
* fix Bug 659 as reported by Robin GetzMike Frysinger2006-05-051-0/+4
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* moved BB_BANNER to applets/version.c file: make kernel like version, "Vladimir N. Oleynik"2006-02-161-2/+2
| | | | removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h
* fix up yet more annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-1/+1
|
* just whitespaceTim Riker2006-01-251-3/+3
|
* data --> text"Vladimir N. Oleynik"2005-10-171-7/+7
|
* usage bb_dev_null"Vladimir N. Oleynik"2005-10-121-1/+1
|
* Reduce exported from msh applet"Vladimir N. Oleynik"2005-09-221-5/+6
|
* applyinf fix for:Paul Fox2005-07-201-1/+1
| | | | | 0000155: variable expansion with braces in backticks in msh
* Jonas Holmberg from axis dot com writes:Eric Andersen2004-09-021-22/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Quiet a few warningsEric Andersen2004-08-271-19/+1
|
* Michael Leibow, MichaelLe at belkin.com writes:Eric Andersen2004-08-041-375/+1056
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Run msh through indentEric Andersen2004-08-041-1313/+1164
|
* Larry Doolittle writes:Eric Andersen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry