aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
AgeCommit message (Collapse)Author
2003-07-14Update a bunch of docs. Run a script to update my email addr.Eric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2003-01-14Only call free if it is necessaryEric Andersen
2003-01-06Minor cleanup, identified by Stewart Brodie, patch by Vladimir N.Glenn L McGrath
Oleynik
2002-12-23Fix STANDALONE_SHELL and ALWAYS_WIN options, last_path_73 by Vladimir N. OleynikGlenn L McGrath
2002-12-11Small bugfix, last_patch72 from Vladimir N. OleynikGlenn L McGrath
2002-12-09Command line history changes, lastpatch_71 from Vladimir N. OleynikGlenn L McGrath
2002-12-03 - the number of commands in the history list is now configureable via theRobert Griebl
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.
2002-10-22Fix warningEric Andersen
2002-10-22Apply last_patch51_3 from vodzEric Andersen
2002-09-30Don't even try to run ash on uClinux. It won't work.Eric Andersen
-Erik
2002-09-17Patch from "Joe.C" <joe@numa.com.tw>Eric Andersen
2002-08-23Apply vodz last_path_51-2Glenn L McGrath
2002-08-22Run through indent, fix commentsGlenn L McGrath
2002-08-02Remove ckfree, and replace all references with free. Remove freefunc,Aaron Lehmann
which is also equivilent to free. Remove some if(x)free(x) redundancies.
2002-07-11Fixup warnings and undefined operations that show up in gcc-3.1Eric Andersen
-Erik
2002-07-04Patch from Stewart Brodie <stewart.brodie@pace.co.uk> to fix ash:Eric Andersen
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.
2002-07-03Scrub pwd.h and grp.h handling so we don't have to play anyEric Andersen
silly games. -Erik
2002-06-06Patch from vodz to only setenv PATH when PATH changes, which is muchEric Andersen
smarter than my quick fix.
2002-06-04Fix for broken handling off BusyBox's own pwd/grp implementationsRobert Griebl
[Parts of this patch may overlap with my other two patches]
2002-05-14Add --login support. This is the bash way of starting a shell that shouldRobert Griebl
parse the profile files.
2002-04-26Ensure that getenv("PATH") stays current, since otherwise cmdeditEric Andersen
(which calls getenv("PATH")) would not operate upon the current PATH settings, which was really quite iritating. -Erik
2002-04-24vodz noted this line (as imported from Debian) is wrong, and has sinceEric Andersen
been fixed upstream.
2002-04-13make ash prompt the same as other shells if cmdedit and fancypromptTim Riker
2002-01-09Make private ash config options be publicEric Andersen
2001-12-31ash patch: errname-diffAaron Lehmann
2001-12-31ash patch: initvar-diffAaron Lehmann
2001-12-31ash patch: forkshell-diffAaron Lehmann
2001-12-31ash patch: fgcmd-diffAaron Lehmann
2001-12-31ash patch: breakcmd-diffAaron Lehmann
2001-12-31ash patch: addfname-diffAaron Lehmann
2001-12-21Patch from vodz to fix broken function prototypeEric Andersen
2001-12-20Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai
2001-12-06The ash ansification diff!Aaron Lehmann
Please tell me if you notice any problems resulting from this.
2001-11-12Change strdup calls to xstrdup (patch from Steve Merrifield).Matt Kraai
2001-11-12Use fopen wrapper.Matt Kraai
2001-10-31Patch from Aaron Lehmann <aaronl@vitelus.com>;Eric Andersen
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.
2001-10-31Patch from ASA <llb@udm.net.ru> to that source filesEric Andersen
are properly passed their arguments.
2001-10-28Add in some (theoretical) uClinux support. Some init cleanupsEric Andersen
2001-10-24Fixup the location of pwd.h and grp.hEric Andersen
2001-10-24Patch from vodz:Eric Andersen
1) complete true: $ > /tmp/tmpfile 2) the builtin pwd now does not unwrap symlinks 3) reduce 680 bytes
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-10-19Add an option to make the shells not advertise their busybox natureEric Andersen
2001-10-19Remove the now unused ARITH_* definesEric Andersen
-Erik
2001-10-18Scrub up some function prototypes.Eric Andersen
-Erik
2001-09-11Commit my changes to xxreadtoken() to reduce code size. Also set definesManuel Novoa III
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.
2001-09-06define IFS_BROKENEric Andersen
2001-09-06Patch from vodz to make ash cope with leading redirectionsEric Andersen
(i.e. '2>/dev/null ls rubbish') will now work.
2001-08-12I stupidly forgot one level of pointer indirection in the cmdtxt(), calcsize(),Manuel Novoa III
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.
2001-08-10Fix a merging errorEric Andersen