aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* moved BB_BANNER to applets/version.c file: make kernel like version, vodz2006-02-161-2/+3
| | | | | | removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h git-svn-id: svn://busybox.net/trunk/busybox@14080 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix up yet more annoying signed/unsigned and mixed type errorsandersen2006-01-301-12/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* C99 say: "char" declaration may be signed or unsigned defaultvodz2006-01-251-10/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13607 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add more bash-like dot-dirs cmdedit featurevodz2006-01-251-2/+2
| | | | | | | Close bug 648. Restore my whitespace git-svn-id: svn://busybox.net/trunk/busybox@13587 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add platform.h.aldot2006-01-221-23/+11
| | | | | | | - use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
* restore 8-bit syntax works, last debian patch is broken. Noticed by Vladimir ↵vodz2006-01-191-1/+1
| | | | | | Dronnikov git-svn-id: svn://busybox.net/trunk/busybox@13421 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sync with dash_0.5.3-1vodz2006-01-151-302/+267
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13347 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sync license from mainstreamvodz2005-12-151-6/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12899 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove sigsetmask, noticed by Bernhardvodz2005-12-131-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@12872 69ca8d6d-28ef-0310-b511-8ec308f3f277
* common BUFSIZ BSS buffer, small reduce code, data and bssvodz2005-10-151-2/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11867 69ca8d6d-28ef-0310-b511-8ec308f3f277
* correct set prompt if CONFIG_ASH_EXPAND_PRMT enabled, small automatic ↵vodz2005-09-261-3/+12
| | | | | | space->tabs convert by my personal editor git-svn-id: svn://busybox.net/trunk/busybox@11650 69ca8d6d-28ef-0310-b511-8ec308f3f277
* committing:pgf2005-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. git-svn-id: svn://busybox.net/trunk/busybox@11351 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 1) sync with dash_0.5.2-7vodz2005-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) git-svn-id: svn://busybox.net/trunk/busybox@11331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Stephane Billiart to improve ash error message.landley2005-08-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11148 69ca8d6d-28ef-0310-b511-8ec308f3f277
* implemented a builtin echo command in ash. moved the guts of thepgf2005-08-091-33/+19
| | | | | | | | | echo applet into libbb, and now call bb_echo() from both echo.c and ash.c git-svn-id: svn://busybox.net/trunk/busybox@11083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* commiting:pgf2005-08-041-6/+11
| | | | | | | 0000025: vi-editing mode for ash git-svn-id: svn://busybox.net/trunk/busybox@11044 69ca8d6d-28ef-0310-b511-8ec308f3f277
* revert 10881, and refix by changing "if (vallen)" to "if (val)". thispgf2005-07-211-2/+3
| | | | | | | | is per the upstream fix for dash, in dash_0.5.2-6.diff. thanks vodz, for catching this. git-svn-id: svn://busybox.net/trunk/busybox@10888 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix for:pgf2005-07-201-2/+1
| | | | | | | | 0000261: Unsafe empty env var export in ash git-svn-id: svn://busybox.net/trunk/busybox@10881 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix from:pgf2005-07-201-11/+22
| | | | | | | 0000152: ash: quoting rules for local variables different to globals git-svn-id: svn://busybox.net/trunk/busybox@10875 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This one's from me. Fix ash "standalone shell".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. git-svn-id: svn://busybox.net/trunk/busybox@10264 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - no need to check if JOBS is defined. Config.in ensures it.solar2005-02-101-7/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9838 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add ash read -t timeout support. initial code provided by Tim Yamin on ↵solar2005-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 git-svn-id: svn://busybox.net/trunk/busybox@9837 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix CONFIG_ASH_MATH_SUPPORT_64 so it actually worksandersen2004-10-081-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Hiroshi Ito writes: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. git-svn-id: svn://busybox.net/trunk/busybox@9325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patrick Huesmann noticed BusyBox would not link whenandersen2004-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 git-svn-id: svn://busybox.net/trunk/busybox@9226 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir N. Oleynik: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 git-svn-id: svn://busybox.net/trunk/busybox@9127 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Tito to fix warnings about redifined functionions barrier and likely.bug12004-08-061-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9064 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Paul Whittaker writes: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. git-svn-id: svn://busybox.net/trunk/busybox@9013 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jean Wolter, fixes compiler warning when ASH_ALIAS isbug12004-07-211-27/+27
| | | | | | | disabled. git-svn-id: svn://busybox.net/trunk/busybox@8991 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile error when math support disabled.bug12004-06-251-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8925 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stupidity-1, Erik-0andersen2004-06-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8920 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bastian Blank notices a couple of int64_ts that should haveandersen2004-06-221-2/+1
| | | | | | | been longs git-svn-id: svn://busybox.net/trunk/busybox@8919 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bastian Blank: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. git-svn-id: svn://busybox.net/trunk/busybox@8910 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes: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 git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Peter Milne writes:andersen2004-04-121-3/+22
| | | | | | | | | | | | | | | | | | | Just upgraded from 0.6 to 1.00-pre8 Dot command handling handled args correctly (same as bash) in 0.60, but failed in 1.00: I fixed this by reverting the dotcmd function back to previous 0.60 instantiation, please consider using the older version. Thanks Peter git-svn-id: svn://busybox.net/trunk/busybox@8739 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortofandersen2004-04-071-6/+0
| | | | | | | stupid and didn't work properly anyways. git-svn-id: svn://busybox.net/trunk/busybox@8714 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per suggestion by Pawel Sakowski, fix the dash_arith() prototypeandersen2004-04-051-2/+2
| | | | | | | to return a long. We were needlessly truncating to an int. git-svn-id: svn://busybox.net/trunk/busybox@8687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz to fix the dynamic vars patch, which I should notandersen2004-03-161-75/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | have checked in. Vladimir writes: Your patch have many problem. 1. You always added + time(). This cannot reset RANDOM=value for debuging with replay sequential. 2. Hmm. I examine bash 2.04 source. This pseudorandom generator use low bits of counter value. You use high bits. This make bad pseudorandom values after have 0-value. For example, if + time() do remove, your generator always return 0 after first generate 0. 3. Memory leak per call. Use ash-unlike unecessary bb_strdup function. 4. Unsupport show last $RANDOM value for "set" and "export" command. 5. Bloat code. Busybox-unlike patch - added unstandart feature as default hardcode. Last patch attached. Erik, why you apply Paul patch with have 5-th point problem? :( Last patch have ash change xwrite() to fresh libbb/bb_full_write interfase (haved loop after EINTR). --w vodz git-svn-id: svn://busybox.net/trunk/busybox@8632 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-151-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Paul Mundt, lethal at linux-sh dot org writes:andersen2004-03-111-14/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here's a follow-up replacement to the patch I sent earlier, this adjusts some of the semantics of the dynamic variable setting. Namely, dynamic vars can hook a set handler (which RANDOM uses to adjust the seed). They'll only lose their dynamic status if they're unset. I've used the same approach that bash does to come up with the random number, mostly just for consistency. For example: $ echo $RANDOM 13759 $ echo $RANDOM 20057 $ echo $RANDOM 1502 $ export RANDOM=42 $ echo $RANDOM 24179 $ echo $RANDOM 2046 $ unset RANDOM $ echo $RANDOM $ export RANDOM=42 $ echo $RANDOM 42 $ git-svn-id: svn://busybox.net/trunk/busybox@8615 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix vstype[] to match VS* defines. Patch from OpenWrt by mbm.mjn32004-02-181-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8509 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz, based on bug report from Richard Kojedzinszky:andersen2004-02-061-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Richard, >I have a problem, which I can reproduce now. I am using pre7 version of >busybox, and the tab completion works fine. I mean, with an empty command >line I press the TAB twice, and ash shows me the available commands. But >when i process the profile file below, as > $ . /etc/profile >then it stops working, and the double-tab lists the directories available >from the cwd, and not the commands. Has someone else meet this problem >before, or am i doing something wrong? > >This is my '/etc/profile': >- --- ># System profile > >PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin >export PATH >trap ":" INT QUIT TERM > >export PS1="\h \w # " Thanks. Patch attached. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@8421 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz last_patch_125_2, this patch have: bug12004-02-041-12/+58
| | | | | | | | | | - synced with dash 0.4.21 - better handle trap "cmds..." SIGINT (strange, i make bad hack for ash and cmdedit, but this work only with this...) - may be haven`t problem with Ctrl-D git-svn-id: svn://busybox.net/trunk/busybox@8394 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile error when tab completion disabledbug12004-01-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8346 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz last_patch_122, Check $PATH at runtime to fix tab completionbug12004-01-141-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8283 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz last_patch_121, syncing with dash_0.4.19, reduce code size.bug12004-01-131-162/+127
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8275 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix for "Broken pipe" issue, vodz last_patch116_3bug12003-11-251-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8003 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a "broken pipe" problem. vodz, last_patch_116-2bug12003-11-141-5/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7915 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch116 from vodz:andersen2003-10-221-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | Stephane, >Using busybox+uclibc, crond syslog messages look like: > >Oct 9 09:04:46 soekris cron.notice crond[347]: ^Icrond 2.3.2 dillon, >started, log level 8 Thanks for testing. >The attached patch corrects the problem. Your patch is not correct. Correct patch attached. Also. Last patch have - add "Broken pipe" message to ash.c - busybox ash synced with dash_0.4.18 --w vodz git-svn-id: svn://busybox.net/trunk/busybox@7701 69ca8d6d-28ef-0310-b511-8ec308f3f277