aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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-222-12/+31
| | | | | | | | | | | | | | | 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-144-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Wolfgang Denk writes:andersen2004-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | He, there is a bug in HUSH's handling of "if" / "elif" commands: $ if true > then > echo 1 > elif > true > then > echo 2 > elif > true > then > echo 3 > else > echo 4 > fi 1 2 3 $ The same bug exists in all versions of HUSH from BB v0.60.x up to and including v1.00-pre9. The attached patch fixes this: $ if true > then > echo 1 > elif > true > then > echo 2 > elif > true > then > echo 3 > else > echo 4 > fi 1 $ Best regards, Wolfgang Denk git-svn-id: svn://busybox.net/trunk/busybox@8747 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
* Jamie Guinan writes:andersen2004-04-122-3/+3
| | | | | | | | | | | | | | It looks like latest uClibc defines ARCH_HAS_MMU, but a few busybox files test UCLIBC_HAS_MMU, resulting in vfork() getting called instead of fork(), etc. Patch below. Only tested for lash. Cheers, -Jamie git-svn-id: svn://busybox.net/trunk/busybox@8738 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix spelling. "sort of" is two words.andersen2004-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortofandersen2004-04-075-40/+8
| | | | | | | 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
* s/fileno\(stdin\)/STDIN_FILENO/gandersen2004-03-273-3/+3
| | | | | | | s/fileno\(stdout\)/STDOUT_FILENO/g git-svn-id: svn://busybox.net/trunk/busybox@8663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz to fix the dynamic vars patch, which I should notandersen2004-03-162-75/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-157-90/+90
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some goofy formattingandersen2004-03-121-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8623 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
* Patch by Felipe Kellermann to fix a compiler compatability problembug12004-03-051-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8575 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz. last_patch_128bug12004-02-221-6/+8
| | | | | | | | | | - declare applet_using as static from applets.c - small correction to cmdedit, previous version cleared history after Ctrl-C - small spelling correction (by Friedrich Lobenstock) git-svn-id: svn://busybox.net/trunk/busybox@8544 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
* oops. Leave the default feature set enbled for now...andersen2004-02-101-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8442 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Initial effort at disabling job control as wellandersen2004-02-101-6/+35
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8441 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support disabling pipe and redirect supportandersen2004-02-101-40/+67
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8440 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-042-15/+66
| | | | | | | | | | - 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
* last_patch_124 from Vodz, fix an ash bug when alt-1 was pressed, debianbug12004-01-221-12/+11
| | | | | | | bug #228915 git-svn-id: svn://busybox.net/trunk/busybox@8334 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz last_patch_122, Check $PATH at runtime to fix tab completionbug12004-01-143-3/+18
| | | | 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
* Declare dependencies of command line editing in the build systembug12004-01-032-45/+34
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8244 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cmdedit update from Vladimir N. Oleynik (vodz)andersen2003-12-231-22/+24
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8166 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
* Andreas Mohr writes:andersen2003-10-221-8/+9
| | | | | | | | | | | | | | the busybox menuconfig triggered my "inacceptable number of spelling mistakes" upper level, so I decided to make a patch ;-) I also improved some wording to describe some things in a better way. Many thanks for an incredible piece of software! Andreas Mohr, random OSS developer git-svn-id: svn://busybox.net/trunk/busybox@7692 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Junio C Hamano to workaround a gcc compiler bug.bug12003-09-171-22/+23
| | | | | | | | | | | | | | | | | | | | | | The construct certain vintages of GCC (the one I have trouble with is 3.2.3) have trouble with looks like the following: static struct st a; static struct st *p = &a; struct st { int foo; }; static void init(void) { a.foo = 0; } The problem disappears if we move the struct declaration up to let the compiler know the shape of the struct before the first definition uses it, like this: struct st { int foo; }; /* this has been moved up */ static struct st a; static struct st *p = &a; static void init(void) { a.foo = 0; } git-svn-id: svn://busybox.net/trunk/busybox@7537 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bastian Blank to fix a problem when runing find under ash.bug12003-09-151-3/+3
| | | | | | | | | | | | | "If the shell is compiled with -DJOBS, this is all fine -- find wasn't stopped (it was killed), so it correctly uses WTERMSIG instead of WSTOPSIG. However, if the shell _isn't_ compiled with -DJOBS (which it isn't in d-i), only WSTOPSIG is used, which extracts the high byte instead of the low byte from the status code. Since the status code is 13 (SIGPIPE), "st" suddenly gets the value 0, which is equivalent to SIGEXIT. Thus, ash prints out "EXIT" on find's exit." git-svn-id: svn://busybox.net/trunk/busybox@7531 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Jean Wolter to fix a bug where a script wouldnt be executedbug12003-09-151-1/+4
| | | | | | | | | | | | | | | unless it had #!/bin/sh in the first line "It correctly locates the script, tries to execute it via execve which fails. After that it tries to hand it over to /bin/sh which fails too, since ash - neither provides the absolute pathname to /bin/sh - nor tries to lookup the script via PATH if called as "sh script" " git-svn-id: svn://busybox.net/trunk/busybox@7528 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)andersen2003-09-151-5/+3
| | | | | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* config option CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN must dependandersen2003-09-121-1/+1
| | | | | | | on CONFIG_FEATURE_SH_STANDALONE_SHELL. git-svn-id: svn://busybox.net/trunk/busybox@7481 69ca8d6d-28ef-0310-b511-8ec308f3f277
* move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as onebug12003-09-022-5/+4
| | | | | | | | constant. Vodz last_patch_107 git-svn-id: svn://busybox.net/trunk/busybox@7365 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile error and reducing size for libbb/get_console.c to previous size.bug12003-09-011-2/+2
| | | | | | | Vodz last_patch106 git-svn-id: svn://busybox.net/trunk/busybox@7345 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vodz, last patch 103bug12003-08-291-64/+45
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7278 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrite timescmd() function to avoid the use of floating point and tomjn32003-08-131-16/+24
| | | | | | | | correct a bug in the seconds display where something like 65 seconds would be output as "1m65.000000s". git-svn-id: svn://busybox.net/trunk/busybox@7204 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use the new 'select' option to make the shell configandersen2003-08-081-38/+27
| | | | | | | | much less evil and far more obvious. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7190 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Latest dash update from vodzandersen2003-08-061-152/+909
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Merge/rework config system per the latest from linux-2.6.0-test2.andersen2003-08-051-1/+1
| | | | | | | | Fix the config bugs revealed by the updated config system. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7160 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixup typo noticed by Nick Fedchikandersen2003-07-291-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7131 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir N. Oleynik writes:andersen2003-07-292-33/+97
| | | | | | | | | | | Last patch have synced form Manuel Nova III xxreadtoken() function, corrected (C) form dash debian/copyright, removed my small mistake with IFS_BROKEN (thanks by Herbert), and synced cmdedit.c from current CVS (removed libc5 support, your email correction, my (C) year corertion). git-svn-id: svn://busybox.net/trunk/busybox@7129 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is synced from dash-0.4.17 and full ready for insert to new busyboxandersen2003-07-282-6805/+7203
| | | | | | | | | | | | | | version: ftp://ftp.simtreas.ru/pub/my/bb/new News: - code is smalest! - support ${var...} expr - used new very strongly steal controlling terminal git-svn-id: svn://busybox.net/trunk/busybox@7124 69ca8d6d-28ef-0310-b511-8ec308f3f277