summaryrefslogtreecommitdiff
path: root/shell/ash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cleaup read() and write() variants, plus a couple of new functions likeRob Landley2006-07-161-5/+5
| | | | xlseek and fdlength() for the new mkswap.
* A couple things that got tangled up in my tree, easier to check in both thanRob Landley2006-07-121-19/+8
| | | | | | | | | | | | | | 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.
* Bug fix from Vladimir Oleynic via Paul Fox for:Rob Landley2006-07-061-0/+1
| | | | | | | echo "+bond0" > /sys/class/net/bonding_masters while true; do echo hello done
* Get rid of all "#if 0" content."Robert P. J. Day"2006-07-011-5/+0
|
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-1/+1
|
* - convert old-style parameter declarations (K&R) to modern style.Bernhard Reutner-Fischer2006-06-251-3/+2
|
* - add note about strict orderingBernhard Reutner-Fischer2006-06-211-0/+1
|
* Jean Wolter writes: ash uses bsearch to search in the list of built-in ↵Mike Frysinger2006-06-211-1/+1
| | | | commands, therefore the list of built-in commands has to be ordered. Revision 15077 introduced the source built-in and destroyed this order. And now ash doesn't find the shift command anymore.
* Upgrade the standalone shell code to use CONFIG_BUSYBOX_EXEC_PATH.Rob Landley2006-06-141-3/+1
|
* made "test" an ash built-in.Paul Fox2006-06-081-3/+27
| | | | | | | | | | | | | | | | | | | moved the contents of libbb/bb_echo.c back into coreutils/echo.c, which is a more reasonable place for them than libbb. this forces anyone who wants echo and test to be builtin to ash to also have them available as applets. their cost is very small, and the number of people who wouldn't want them as applets is also very small. added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL, which conflicts with their use. thanks to nathanael copa for debugging help. some string size optimization in test.c may have been lost with this commit, but this is a good new baseline.
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-1/+1
|
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-021-4/+3
| | | | and eventual platform specific includes in early.
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* - replace _PATH_DEVNULL with bb_dev_nullBernhard Reutner-Fischer2006-05-191-2/+2
|
* Patch from Lucas C. Villa Real adding "source" as a synonym for the "." command.Rob Landley2006-05-121-0/+1
|
* moved BB_BANNER to applets/version.c file: make kernel like version, "Vladimir N. Oleynik"2006-02-161-2/+3
| | | | 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-12/+14
|
* C99 say: "char" declaration may be signed or unsigned default"Vladimir N. Oleynik"2006-01-251-10/+12
|
* Add more bash-like dot-dirs cmdedit feature"Vladimir N. Oleynik"2006-01-251-2/+2
| | | | | Close bug 648. Restore my whitespace
* just whitespaceTim Riker2006-01-251-2/+2
|
* - add platform.h.Bernhard Reutner-Fischer2006-01-221-23/+11
| | | | - use shorter boilerplate while at it.
* restore 8-bit syntax works, last debian patch is broken. Noticed by Vladimir ↵"Vladimir N. Oleynik"2006-01-191-1/+1
| | | | Dronnikov
* sync with dash_0.5.3-1"Vladimir N. Oleynik"2006-01-151-302/+267
|
* sync license from mainstream"Vladimir N. Oleynik"2005-12-151-6/+2
|
* remove sigsetmask, noticed by Bernhard"Vladimir N. Oleynik"2005-12-131-0/+4
|
* common BUFSIZ BSS buffer, small reduce code, data and bss"Vladimir N. Oleynik"2005-10-151-2/+1
|
* correct set prompt if CONFIG_ASH_EXPAND_PRMT enabled, small automatic ↵"Vladimir N. Oleynik"2005-09-261-3/+12
| | | | space->tabs convert by my personal editor
* committing:Paul Fox2005-09-071-51/+95
| | | | | | | | Summary 0000242: ash: read -t broken this also implements -n and -s options to read. (they're configured together because most of their code is in common, and separating them seemed silly.
* 1) sync with dash_0.5.2-7"Vladimir N. Oleynik"2005-09-051-59/+94
| | | | | | 2) but expand PS# as config option 3) correct kill error message again 4) remove show "line number" for interactive run (patch pending for dash)
* Patch from Stephane Billiart to improve ash error message.Rob Landley2005-08-141-1/+1
|
* implemented a builtin echo command in ash. moved the guts of thePaul Fox2005-08-091-33/+19
| | | | | | echo applet into libbb, and now call bb_echo() from both echo.c and ash.c
* commiting:Paul Fox2005-08-041-6/+11
| | | | 0000025: vi-editing mode for ash
* revert 10881, and refix by changing "if (vallen)" to "if (val)". thisPaul Fox2005-07-211-2/+3
| | | | | is per the upstream fix for dash, in dash_0.5.2-6.diff. thanks vodz, for catching this.
* applying fix for:Paul Fox2005-07-201-2/+1
| | | | | 0000261: Unsafe empty env var export in ash
* applying fix from:Paul Fox2005-07-201-11/+22
| | | | 0000152: ash: quoting rules for local variables different to globals
* This one's from me. Fix ash "standalone shell".Rob Landley2005-05-071-21/+7
| | | | | | | | | If we exec /proc/self/exe and only fall back to /bin/busybox if /proc isn't there, then we have a reasonable chance of having the standalone shell work even if busybox isn't installed in /bin on the system in question. Still won't work in a chroot environment, but it's an improvement.
* - no need to check if JOBS is defined. Config.in ensures it.Ned Ludd2005-02-101-7/+6
|
* - add ash read -t timeout support. initial code provided by Tim Yamin on ↵Ned Ludd2005-02-091-3/+63
| | | | Oct/21/2004 on the busybox mailing list. Edited his code a little to keep syntax highlighers happy and make it optional when CONFIG_ASH_TIMEOUT is defined
* Fix CONFIG_ASH_MATH_SUPPORT_64 so it actually worksEric Andersen2004-10-081-4/+4
|
* Hiroshi Ito writes:Eric Andersen2004-10-081-0/+1
| | | | | | | | ash "unset OLDPWD; cd -" causes segmentation fault. ( OLDPWD is not set when sh is invoked from getty. ) patch against current CVS is attached.
* Patrick Huesmann noticed BusyBox would not link whenEric Andersen2004-09-081-0/+2
| | | | | | | | | | | | | | CONFIG_FEATURE_COMMAND_EDITING was defined *and* CONFIG_FEATURE_COMMAND_TAB_COMPLETION was undefined. Vladimir N. Oleynik writes: Its declare always, also if CONFIG_FEATURE_COMMAND_TAB_COMPLETION undefined. Patch to CVS version attached. --w vodz
* Patch from Vladimir N. Oleynik:Eric Andersen2004-08-191-1/+1
| | | | | | | | | | | | | | | | On Wed Aug 18, 2004 at 06:52:57PM +0800, Matt Johnston wrote: > I've come across some strange-seeming behaviour when running programs > under Busybox (1.0.0-rc3) ash. If the child process sets stdin to be > non-blocking and then exits, the parent ash will also exit. A quick strace > shows that a subsequent read() from stdin returns EAGAIN (as would be > expected): Thanks! Patch attached. --w vodz
* Patch from Tito to fix warnings about redifined functionions barrier and likely.Glenn L McGrath2004-08-061-9/+9
|
* Paul Whittaker writes:Eric Andersen2004-07-241-0/+1
| | | | | | | | | | | | | With job control enabled, ash fails to tcsetpgrp back to initialpgrp upon exit. exitshell() should call setjobctl(0) to do this. Context: I am using a lightweight menu system (replimenu[.sf.net]) on my console, which invokes "/bin/sh -i -c /bin/login", where /bin/sh and /bin/login are busybox applets. /bin/sh is ash, with CONFIG_ASH_JOB_CONTROL=y as the sole suboption. The shell of the user concerned (nobody) is also /bin/sh (ash). When the user /bin/sh exits (and thereby login and its parent sh), replimenu receives EIO when it tries to read from the terminal.
* Patch from Jean Wolter, fixes compiler warning when ASH_ALIAS isGlenn L McGrath2004-07-211-27/+27
| | | | disabled.
* Fix compile error when math support disabled.Glenn L McGrath2004-06-251-1/+2
|
* Stupidity-1, Erik-0Eric Andersen2004-06-221-1/+1
|
* Bastian Blank notices a couple of int64_ts that should haveEric Andersen2004-06-221-2/+1
| | | | been longs
* Patch from Bastian Blank:Eric Andersen2004-06-221-12/+22
| | | | | | | | | | | | The updated patch adds a config option to explicitely enable 64 bit arithmetic. Also it removes the arith prototype from libbb.h as it is not used outside of ash. Bastian this patch has been slightly modified by Erik for cleanliness.
* Larry Doolittle writes:Eric Andersen2004-04-141-13/+13
| | | | | | | | | | | | | | | | | | | | | | 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