summaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Applied vodz' patches #49 and #50 (with a small correction in runshell.c)Robert Griebl2002-07-191-2/+1
| | | | | | | | | #49: I found one memory overflow and memory leak in "ln" applet. Last patch reduced also 54 bytes. ;) #50: I found bug in loginutils/Makefile.in. New patch have also new function to libbb and aplied this to applets and other cosmetic changes.
* Fixup warnings and undefined operations that show up in gcc-3.1Eric Andersen2002-07-111-2/+2
| | | | -Erik
* Patch from Stewart Brodie <stewart.brodie@pace.co.uk> to fix ash:Eric Andersen2002-07-041-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When alias support is not configured, ash believes that command parameters that look like dd's "if=/dev/zero" are requests to set a temporary environment variable whilst dd is running, even though it appears after the command name. This is caused by the re-use of the checkalias global variable to indicate when both alias checking and environment variable checking. The failure to reset this flag is due to the reset action being performed only inside the feature check CHECK_ASH_ALIAS. Hence ash works as expected when aliases are configured in, and fails when not. Example script using 'date' with different settings of TZ: # TZ=Europe/London # export TZ # date Thu May 30 17:18:49 BST 2002 # TZ=America/New_York date Thu May 30 12:19:10 EDT 2002 # date Thu May 30 17:19:12 BST 2002 # date TZ=America/New_York Thu May 30 12:19:30 EDT 2002 <----- wrong, should be BST time (or error!) # date Thu May 30 17:19:35 BST 2002 Attached is a patch against revision 1.52 of ash.c which moves the checks so that checkalias is updated regardless of whether CONFIG_ASH_ALIAS is set. With this patch applied, the command shown above which should generate an error does generate an error. I have tested this patch with the 'dd' command too and that now works correctly.
* Scrub pwd.h and grp.h handling so we don't have to play anyEric Andersen2002-07-032-3/+3
| | | | | silly games. -Erik
* Fix a buffer overflow found by Gerardo Puga <gpuga@gioia.ing.unlp.edu.ar>Eric Andersen2002-06-061-1/+1
| | | | -Erik
* Patch from vodz to only setenv PATH when PATH changes, which is muchEric Andersen2002-06-061-3/+3
| | | | smarter than my quick fix.
* Fix for broken handling off BusyBox's own pwd/grp implementationsRobert Griebl2002-06-041-2/+2
| | | | [Parts of this patch may overlap with my other two patches]
* Add --login support. This is the bash way of starting a shell that shouldRobert Griebl2002-05-141-3/+10
| | | | parse the profile files.
* Ensure that getenv("PATH") stays current, since otherwise cmdeditEric Andersen2002-04-262-1/+5
| | | | | | (which calls getenv("PATH")) would not operate upon the current PATH settings, which was really quite iritating. -Erik
* vodz noted this line (as imported from Debian) is wrong, and has sinceEric Andersen2002-04-241-2/+2
| | | | been fixed upstream.
* Apply last_patch37 from vodzEric Andersen2002-04-241-2/+3
|
* Patch from Jim Treadway and Vladimir Oleynik to Add CTRL-KEric Andersen2002-04-131-8/+12
| | | | and fix CTRL-L support for cmdedit.c
* Nice patch from Wolfgang Denk <wd@denx.de> to provide hush withEric Andersen2002-04-131-39/+308
| | | | shell loops (for, while, until) and control operators (||, &&)
* make ash prompt the same as other shells if cmdedit and fancypromptTim Riker2002-04-131-4/+7
|
* Completely rework the config system so that it no longer annoys me to work onEric Andersen2002-04-122-19/+45
| | | | | | | the busybox development tree. This eliminates the use of recursive make, and once again allows us to run 'make' in a subdirectory with the expected result. And things are now much faster too. Greatly improved IMHO... -Erik
* Patch from vodz to fix a potential segfaultEric Andersen2002-03-201-2/+2
|
* Make private ash config options be publicEric Andersen2002-01-092-125/+98
|
* ash patch: errname-diffAaron Lehmann2001-12-311-2/+2
|
* ash patch: initvar-diffAaron Lehmann2001-12-311-2/+2
|
* ash patch: forkshell-diffAaron Lehmann2001-12-311-11/+2
|
* ash patch: fgcmd-diffAaron Lehmann2001-12-311-3/+1
|
* ash patch: breakcmd-diffAaron Lehmann2001-12-311-1/+3
|
* ash patch: addfname-diffAaron Lehmann2001-12-311-4/+2
|
* Patch from vodz to fix broken function prototypeEric Andersen2001-12-211-2/+2
|
* Patch from vodz to implement ^L (clear screen)Eric Andersen2001-12-211-1/+10
|
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai2001-12-203-5/+5
|
* Begin moving things to busybox.netEric Andersen2001-12-081-1/+1
| | | | -Erik
* The ash ansification diff!Aaron Lehmann2001-12-061-356/+191
| | | | Please tell me if you notice any problems resulting from this.
* Change strdup calls to xstrdup (patch from Steve Merrifield).Matt Kraai2001-11-122-4/+4
|
* Use fopen wrapper.Matt Kraai2001-11-121-4/+2
|
* Some more minor build cleanupsEric Andersen2001-11-101-13/+5
|
* Cleanup some config problems. Add a sane default config that basicallyEric Andersen2001-11-101-0/+4
| | | | matches the default old Config.h
* Patch from Aaron Lehmann <aaronl@vitelus.com>;Eric Andersen2001-10-311-26/+24
| | | | | | | | | | | This diff does 2 things: 1) removes an unnecessary function. saves 64 bytes on i386 2) allows you to disable checking of mail (actually, it's now disabled by default). this would be a nice CML1 option, but for now it's a #(define|undef) in the C file like the other internal ash options. this saves an additional 352 bytes if you leave mail disabled.
* Fixup some silly prototype warningsEric Andersen2001-10-311-3/+3
|
* Patch from ASA <llb@udm.net.ru> to that source filesEric Andersen2001-10-311-6/+25
| | | | are properly passed their arguments.
* Add in some (theoretical) uClinux support. Some init cleanupsEric Andersen2001-10-283-3/+21
|
* Fixup the location of pwd.h and grp.hEric Andersen2001-10-242-3/+3
|
* Patch from vodz:Eric Andersen2001-10-241-133/+30
| | | | | | 1) complete true: $ > /tmp/tmpfile 2) the builtin pwd now does not unwrap symlinks 3) reduce 680 bytes
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-247-105/+199
| | | | -Erik
* Add an option to make the shells not advertise their busybox natureEric Andersen2001-10-194-2/+11
|
* Remove the now unused ARITH_* definesEric Andersen2001-10-191-27/+1
| | | | -Erik
* Scrub up some function prototypes.Eric Andersen2001-10-181-19/+12
| | | | -Erik
* Patch from Magnus Damm <damm@opensource.se> to avoid lash hangingEric Andersen2001-10-031-1/+7
| | | | on serial ports
* Commit my changes to xxreadtoken() to reduce code size. Also set definesManuel Novoa III2001-09-111-5/+85
| | | | | | so that the table implementations of copynode, calcsize, and cmdtxt are used. Hopefully this will result in wider testing. ;-) If it breaks, just unset the appropriate defines.
* define IFS_BROKENEric Andersen2001-09-061-1/+2
|
* Patch from vodz to make ash cope with leading redirectionsEric Andersen2001-09-061-2/+9
| | | | (i.e. '2>/dev/null ls rubbish') will now work.
* Fix a warning and potential segfault in lash when BB_FEATURE_CLEAN_UPEric Andersen2001-08-221-2/+2
| | | | is enabled
* I stupidly forgot one level of pointer indirection in the cmdtxt(), calcsize(),Manuel Novoa III2001-08-121-19/+23
| | | | | | | and copynode() table implementations. Commit the fix but keep them disabled until others check them out. Uncomment "//#define CMDTXT_TABLE", "//#define CALCSIZE_TABLE", and "//#define COPYNODE_TABLE" to try them out. Saves over 600 bytes on i386.
* Fix a merging errorEric Andersen2001-08-101-2/+1
|
* A few bug fixes and significant size savings. Combined effort ofManuel Novoa III2001-08-101-1178/+1063
| | | | | Vladimir N. Oleynik dzo@simtreas.ru, Aaron Lehmann aaronl@vitelus.com, and myself.