aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Peter Milne writes:Eric 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
* Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortofEric Andersen2004-04-071-6/+0
| | | | stupid and didn't work properly anyways.
* Per suggestion by Pawel Sakowski, fix the dash_arith() prototypeEric Andersen2004-04-051-2/+2
| | | | to return a long. We were needlessly truncating to an int.
* Patch from vodz to fix the dynamic vars patch, which I should notEric Andersen2004-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
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* Paul Mundt, lethal at linux-sh dot org writes:Eric 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 $
* Fix vstype[] to match VS* defines. Patch from OpenWrt by mbm.Manuel Novoa III2004-02-181-1/+1
|
* Patch from vodz, based on bug report from Richard Kojedzinszky:Eric 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
* Vodz last_patch_125_2, this patch have: Glenn L McGrath2004-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
* Fix compile error when tab completion disabledGlenn L McGrath2004-01-251-1/+1
|
* Vodz last_patch_122, Check $PATH at runtime to fix tab completionGlenn L McGrath2004-01-141-0/+3
|
* Vodz last_patch_121, syncing with dash_0.4.19, reduce code size.Glenn L McGrath2004-01-131-162/+127
|
* Fix for "Broken pipe" issue, vodz last_patch116_3Glenn L McGrath2003-11-251-1/+1
|
* Fix a "broken pipe" problem. vodz, last_patch_116-2Glenn L McGrath2003-11-141-5/+1
|
* last_patch116 from vodz:Eric 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
* Patch by Junio C Hamano to workaround a gcc compiler bug.Glenn L McGrath2003-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; }
* Patch from Bastian Blank to fix a problem when runing find under ash.Glenn L McGrath2003-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."
* Patch by Jean Wolter to fix a bug where a script wouldnt be executedGlenn L McGrath2003-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" "
* move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as oneGlenn L McGrath2003-09-021-1/+1
| | | | | constant. Vodz last_patch_107
* Fix compile error and reducing size for libbb/get_console.c to previous size.Glenn L McGrath2003-09-011-2/+2
| | | | Vodz last_patch106
* vodz, last patch 103Glenn L McGrath2003-08-291-64/+45
|
* Rewrite timescmd() function to avoid the use of floating point and toManuel Novoa III2003-08-131-16/+24
| | | | | correct a bug in the seconds display where something like 65 seconds would be output as "1m65.000000s".
* Latest dash update from vodzEric Andersen2003-08-061-152/+909
|
* Fixup typo noticed by Nick FedchikEric Andersen2003-07-291-1/+1
|
* Vladimir N. Oleynik writes:Eric Andersen2003-07-291-26/+94
| | | | | | | | 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).
* This is synced from dash-0.4.17 and full ready for insert to new busyboxEric Andersen2003-07-281-6700/+7085
| | | | | | | | | | | version: ftp://ftp.simtreas.ru/pub/my/bb/new News: - code is smalest! - support ${var...} expr - used new very strongly steal controlling terminal
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-16/+16
|
* Only call free if it is necessaryEric Andersen2003-01-141-1/+2
|
* Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.Glenn L McGrath2003-01-061-7/+4
| | | | Oleynik
* Fix STANDALONE_SHELL and ALWAYS_WIN options, last_path_73 by Vladimir N. OleynikGlenn L McGrath2002-12-231-9/+23
|
* Small bugfix, last_patch72 from Vladimir N. OleynikGlenn L McGrath2002-12-111-1/+1
|
* Command line history changes, lastpatch_71 from Vladimir N. OleynikGlenn L McGrath2002-12-091-8/+40
|
* - the number of commands in the history list is now configureable via theRobert Griebl2002-12-031-0/+9
| | | | | | | config system - added a new config option to allow persistant history lists. This is currently only used by ash, but the calls ({load,save}_history) could be added to the other shells as well.
* Fix warningEric Andersen2002-10-221-0/+1
|
* Apply last_patch51_3 from vodzEric Andersen2002-10-221-1/+15
|
* Don't even try to run ash on uClinux. It won't work.Eric Andersen2002-09-301-4/+4
| | | | -Erik
* Patch from "Joe.C" <joe@numa.com.tw>Eric Andersen2002-09-171-1/+14
|
* Apply vodz last_path_51-2Glenn L McGrath2002-08-231-395/+171
|
* Run through indent, fix commentsGlenn L McGrath2002-08-221-2790/+2705
|
* Remove ckfree, and replace all references with free. Remove freefunc,Aaron Lehmann2002-08-021-59/+41
| | | | | which is also equivilent to free. Remove some if(x)free(x) redundancies.
* Fixup warnings and undefined operations that show up in gcc-3.1Eric Andersen2002-07-111-2/+2
| | | | -Erik