aboutsummaryrefslogtreecommitdiff
path: root/shell/hush.c
AgeCommit message (Collapse)Author
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-07-19Replace the previous checkin with the correct fix.Rob Landley
2006-07-18For now, get around the error that "child" might be uninitialized."Robert P. J. Day"
2006-07-01Get rid of all "#if 0" content."Robert P. J. Day"
2006-07-01Remove "#if 1" directives."Robert P. J. Day"
2006-06-20Cleanup patch from Shaun Jackman converting %m to perror.Rob Landley
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-02-24I was playing around with a dependency generator a couple weeks ago and I foundRob Landley
some #include files that aren't in the tree. No biggie...
2006-02-16moved BB_BANNER to applets/version.c file: make kernel like version, "Vladimir N. Oleynik"
removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h
2006-01-31quick analize signed->unsigned: protect overflow of map[char], getchar->EOF. ↵"Vladimir N. Oleynik"
Use ATTRIBUTE_UNUSE.
2006-01-30fix up yet more annoying signed/unsigned and mixed type errorsEric Andersen
2006-01-25just whitespaceTim Riker
2006-01-22- add platform.h.Bernhard Reutner-Fischer
- use shorter boilerplate while at it.
2005-12-12Uninitialized variable causing intermittent syntax errors (bug 449).Rob Landley
2005-10-17data --> text"Vladimir N. Oleynik"
2005-09-22Reduce exported from hush applet"Vladimir N. Oleynik"
2004-04-14Larry Doolittle writes:Eric Andersen
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
2004-04-12Wolfgang Denk writes:Eric Andersen
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
2004-04-12Jamie Guinan writes:Eric Andersen
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
2004-04-07Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortofEric Andersen
stupid and didn't work properly anyways.
2004-03-27s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen
s/fileno\(stdout\)/STDOUT_FILENO/g
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
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
2002-12-06Make hush comple once againEric Andersen
2002-11-28Change if(x)free(x); to free(x);Aaron Lehmann
2002-04-13Nice patch from Wolfgang Denk <wd@denx.de> to provide hush withEric Andersen
shell loops (for, while, until) and control operators (||, &&)
2001-10-31Fixup some silly prototype warningsEric Andersen
2001-10-28Add in some (theoretical) uClinux support. Some init cleanupsEric Andersen
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-08-01Allow multiple shells to be enabled.Matt Kraai
2001-07-12Patch from vodz:Eric Andersen
Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function
2001-06-28More thrashing about trying to make hush behave itself wrt jobEric Andersen
control...
2001-06-26Explicitly call setsid()Eric Andersen
2001-06-26Don't choke if /etc/profile is not availableEric Andersen
2001-06-26Vladimir's last_patch_15Glenn L McGrath
2001-06-25Fix the code for establishing a controlling terminal.Eric Andersen
-Erik
2001-06-22Some more cleanups. Of special importance, never free a pipeEric Andersen
that still has running jobs. Instead, we ignore it and expect it to be cleaned by the background job stuff. -Erik
2001-06-22Some cleanups for hush. Saves about 350bytes.Eric Andersen
-Erik
2001-06-07Another hush update from Larry:Eric Andersen
Fixes the interaction between if/then/else/fi syntax and variables. I planned to do it right from the beginning, but my implementation was buggy. Also adds the relevant test cases. Also adds some old Matt Kraai variable test cases that got left out somehow.
2001-06-06A patch from Larry to fix pathological things like '>""'Eric Andersen
2001-06-05Don't close file descriptors when we are duplicating them.Matt Kraai
2001-05-31Cope gracefully when people type something, then hit ^C.Eric Andersen
-Erik
2001-05-24Plug another memory leakEric Andersen
2001-05-23Plug another memory leak in hush. This one showed up when backtickedEric Andersen
commands were run. This one was sure a bugger to find. -Erik
2001-05-23Fix a massive memory leak in the run_list_test() function.Eric Andersen
Rename run_list_test() as free_pipe_list(). Rename run_pipe_test() as free_pipe(). -Erik
2001-05-23Commit a patch by Larry Doolittle which fixes recursive calls to file_peek,Matt Kraai
and improves some debugging messages.
2001-05-22Excellent. This patch from Larry fixes the behavior of hushEric Andersen
when builtins are included in pipes.
2001-05-22Fix this case. No, really this time.Eric Andersen
unset FOO export FOO=bar FOO=baz echo "global env: " `env | grep ^FOO` echo "local env: " `set | grep ^FOO` -Erik