aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix up yet more annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-1/+1
|
* just whitespaceTim Riker2006-01-251-1/+1
|
* - add platform.h.Bernhard Reutner-Fischer2006-01-221-15/+2
| | | | - use shorter boilerplate while at it.
* Reduce exported from lash applet"Vladimir N. Oleynik"2005-09-221-2/+2
|
* Shaun Jackman writes: Newlib uses both __getopt_initialized and optind to ↵Mike Frysinger2005-03-041-5/+11
| | | | track initialization of getopt()
* Joe.C writes:Eric Andersen2004-08-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This bug is in busybox 1.0.0-rc2. When using lash exec builtin with redirection, the opened file fd keep increasing. For example, please try the following command with lash. ls -al /proc/<lash pid>/fd exec /bin/sh 2>/dev/null ls -al /proc/<lash pid>/fd The last 'ls' command output will look like this. The fd number 4 shouldn't exist. lrwx------ 1 501 100 64 Aug 13 13:56 4 -> /dev/pts/5 l-wx------ 1 501 100 64 Aug 13 13:56 2 -> /dev/null lrwx------ 1 501 100 64 Aug 13 13:56 1 -> /dev/pts/5 lrwx------ 1 501 100 64 Aug 13 13:56 0 -> /dev/pts/5 dr-xr-xr-x 3 501 100 0 Aug 13 13:56 .. dr-x------ 2 501 100 0 Aug 13 13:56 . This one-line patch fix this problem by setting CLOEXEC flag for squirrel fd. Please apply. Joe.C
* Jamie Guinan writes:Eric Andersen2004-04-121-1/+1
| | | | | | | | | | | 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
* Remove the CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN option. It was sortofEric Andersen2004-04-071-9/+0
| | | | stupid and didn't work properly anyways.
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-271-1/+1
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-3/+3
|
* Fix some goofy formattingEric Andersen2004-03-121-4/+3
|
* Patch by Felipe Kellermann to fix a compiler compatability problemGlenn L McGrath2004-03-051-6/+6
|
* oops. Leave the default feature set enbled for now...Eric Andersen2004-02-101-2/+2
|
* Initial effort at disabling job control as wellEric Andersen2004-02-101-6/+35
|
* Support disabling pipe and redirect supportEric Andersen2004-02-101-40/+67
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-35/+35
|
* Squash a warning by making function declaration a proper prototypeEric Andersen2002-12-111-1/+1
|
* Change if(x)free(x); to free(x);Aaron Lehmann2002-11-281-8/+4
|
* Teach lash to get $1 $2 $3 etc correctEric Andersen2002-11-081-1/+1
| | | | -Erik
* Use %m, not strerror, and strerror(err) was broken anyways and should have beenEric Andersen2002-09-301-1/+1
| | | | strerror(errno). Problem noted by Alexey V. Neyman <alex.neyman@auriga.ru>
* Avoid calling exit() from within fork/vfork'ed processes.Eric Andersen2002-09-261-3/+7
| | | | -Erik
* A couple of small bugfixes from Marshall M. Midden <m4@brecis.com>Eric Andersen2002-07-311-3/+6
|
* Fix a buffer overflow found by Gerardo Puga <gpuga@gioia.ing.unlp.edu.ar>Eric Andersen2002-06-061-1/+1
| | | | -Erik
* Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.Matt Kraai2001-12-201-1/+1
|
* Begin moving things to busybox.netEric Andersen2001-12-081-1/+1
| | | | -Erik
* Change strdup calls to xstrdup (patch from Steve Merrifield).Matt Kraai2001-11-121-1/+1
|
* Add in some (theoretical) uClinux support. Some init cleanupsEric Andersen2001-10-281-1/+6
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-18/+20
| | | | -Erik
* Add an option to make the shells not advertise their busybox natureEric Andersen2001-10-191-0/+2
|
* Patch from Magnus Damm <damm@opensource.se> to avoid lash hangingEric Andersen2001-10-031-1/+7
| | | | on serial ports
* Fix a warning and potential segfault in lash when BB_FEATURE_CLEAN_UPEric Andersen2001-08-221-2/+2
| | | | is enabled
* Allow multiple shells to be enabled.Matt Kraai2001-08-011-1/+1
|
* Patch from vodz:Eric Andersen2001-07-121-5/+1
| | | | | | | Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function
* don't whine if all we need to do is remove a bg jobEric Andersen2001-06-271-1/+2
|
* Re-enable globbing (I'd accidentaly removed it) and finish off the lastEric Andersen2001-06-271-10/+224
| | | | | of the job control polishing. Works fine now. -Erik
* This should finish off the job control issues with lash. Make certainEric Andersen2001-06-251-15/+46
| | | | | we have a controlling terminal... -Erik
* This commit guts lash, restoring it to what it was originally intended to do,Eric Andersen2001-06-211-582/+32
| | | | | | just be a simple command line interpreter with basic pipe, redirect, and job control. For all the more fancy things, people should use hush or ash. -Erik
* Patch from larry to fix some grammar errors.Eric Andersen2001-05-231-2/+2
|
* Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bugEric Andersen2001-05-211-3/+3
| | | | #1130 (i.e. When you turn on features it should always ADD features)
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai2001-05-161-2/+2
| | | | by Larry Doolittle.
* Fix up some silly warningsEric Andersen2001-05-111-3/+3
|
* Fix a segfault in lash, hush, and cmdedit. Each of these usedEric Andersen2001-05-111-2/+7
| | | | | | xgetcwd, but did not check the return for a NULL, and then continued to call strlen on the NULL when the cwd had been removed from under it. -Erik
* Moved some #ifdefs down below #include "busybox.h" where they belong.Mark Whitley2001-04-251-2/+2
|
* Some patches from Gennady Feldman. Fixed a glob problem such thatEric Andersen2001-04-231-5/+5
| | | | | 'ls *.h Config.h' works. Fixed a silly typo with fg/bg process control. Made cmdedit exit sanely when it cannot read input.
* Another banner consolidation from Larry Doolittle <ldoolitt@recycle.lbl.gov>.Matt Kraai2001-04-121-1/+1
|
* Fix handling of '' and "".Matt Kraai2001-04-121-4/+6
|
* Apply Vladimir's latest cleanup patch.Eric Andersen2001-04-091-22/+15
| | | | -Erik
* Avoid segfault when export is invoked with no arguments. Thanks toMatt Kraai2001-04-041-0/+1
| | | | Gennady Feldman.
* Add in a new standalone env applet for fixing up app's environmentsEric Andersen2001-03-291-16/+5
| | | | -Erik