aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Oops. Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put itandersen2001-02-201-6/+5
| | | | | | | after busybox.h is included. git-svn-id: svn://busybox.net/trunk/busybox@1868 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This fixes lash so it handles environment variable expansion, regardlessandersen2001-02-201-17/+30
| | | | | | | | | | | of where the environment variables are located in an argument. This allows things like 'echo foo$1$SHELL' to expand the same way bash would expand it. Of course, to make this work I introduced a memory leak, and I am too tired to find a way to fix it. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1867 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-02-201-15/+15
| | | | | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Put back Vladimir's testing defines, which I mistakenly removed.andersen2001-02-181-4/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1854 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Several features were hard coded on. Stop that. List tab completionandersen2001-02-161-12/+8
| | | | | | | | as working (thanks Vladimir!) and taking 4k. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1840 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Commit Vladimir's latest cmdedit. I modified it slightly to ensureandersen2001-02-162-8/+8
| | | | | | | | | | | parse_prompt() would be called before cmdedit_init(), since cmdedit_init() calls cmdedit_setwidth() which uses cmdedit_prmt_len, which is set by parse_prompt(). Also, added a mod, so very narrow terminals should now wrap properly... This is working very nicely for me -- Vladimir has done some very good work. git-svn-id: svn://busybox.net/trunk/busybox@1839 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make ar be crossed.andersen2001-02-161-493/+1028
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1834 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-02-141-10/+7
| | | | | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesandersen2001-02-012-1/+4
| | | | | | | | | | to multibuild.pl. I did a little formatting adjustments to make it _very_ obvious when things stop working. I also removed the USE_PROCFS config option -- just do the right thing when USE_DEVPS_PATCH is enabled. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1739 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Create find_applet_by_name function. Save 32 bytes.kraai2001-02-011-7/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-312-16/+16
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If the ioctl fails to tell us the winsize, default to 79.andersen2001-01-311-1/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1721 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bryan Rittmeyer -- be more conservative by defaultandersen2001-01-301-0/+20
| | | | | | | | with the lash prompt. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1720 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix the pwd and group functions. The bb_ stuff was a leftover fromandersen2001-01-301-9/+10
| | | | | | | | a brief past that mercifully (except for this) never made it into CVS. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1718 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up copyright msgs. Bump version to 0.49 in preparation forandersen2001-01-271-1/+1
| | | | | | | | a release. Update the website with release details. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a patch to make busybox use the normal pwd.h and grp.handersen2001-01-271-7/+3
| | | | | | | | | functions. Add in simple implementations of these functions, which can, optionally, be used instead of the system versions. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1694 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Vladimir N. Oleynik <dzo@simtreas.ru> to do tab-completionmarkw2001-01-261-255/+501
| | | | | | | in Busybox shell. (Thanks, Vlad.) git-svn-id: svn://busybox.net/trunk/busybox@1688 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed a li'l thinko.markw2001-01-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1685 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-232-5/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug fix.andersen2001-01-231-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1639 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More printf cleanupsandersen2001-01-201-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1622 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate calls of the form "fprintf(stdout,". Thanks for the idea tokraai2001-01-181-1/+1
| | | | | | | Vladimir N. Oleynik. git-svn-id: svn://busybox.net/trunk/busybox@1616 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Needs to be NULL at init in all cases.andersen2001-01-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1545 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from larry doolittle to be ever so careful to cleanupandersen2001-01-051-16/+72
| | | | | | | all open file descriptors, lest wierdness happen later. git-svn-id: svn://busybox.net/trunk/busybox@1543 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Better label the globals.andersen2001-01-051-2/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1542 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Larry Doolittle to set values to static variables that live in theandersen2001-01-051-2/+15
| | | | | | | | | bss at runtime, since sh.c can call sh.c, which causes these variables to not be set to their defaults as god intended. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1541 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a segfault by only constructing the prompt when we need to. If we don'tkraai2001-01-051-2/+2
| | | | | | | do this we will segfault processing /etc/.profile since cwd isn't yet set. git-svn-id: svn://busybox.net/trunk/busybox@1538 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move window size handling to cmdedit.c. Move prompt setup to ↵andersen2001-01-041-53/+33
| | | | | | setup_prompt_string() git-svn-id: svn://busybox.net/trunk/busybox@1533 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update interface per what now exists...andersen2001-01-041-13/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup -- move win handling to cmdedit.c, static-ify many functions.andersen2001-01-041-15/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1531 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup from Gennady Feldman <gfeldman@mail.com>andersen2000-12-221-8/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1490 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use busybox error handling functions wherever possible.kraai2000-12-221-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1489 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another sh.c patch from Larry Doolittle. This makes redirects work properlyandersen2000-12-211-37/+71
| | | | | | | | | | with non-forking shell builtins. Especially helpful for "read". This patch also beautifies builtin_fg_bg, clarifies the problems with run_command_predicate, makes if/then/else support the default, and corrects the sense of the BB_FEATURE_SH_ENVIRONMENT comment. git-svn-id: svn://busybox.net/trunk/busybox@1487 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a warning in sh.c. Remove use of getline() in md5sum sinceandersen2000-12-201-1/+4
| | | | | | | nobody else uses it and it is a GNU extension anyways... git-svn-id: svn://busybox.net/trunk/busybox@1482 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Ok, this is a pretty major update to sh.c. I renamed all the variables andandersen2000-12-182-475/+631
| | | | | | | | | | | | | | | function names to conform with the style guide. I also did a lot of work on the if-then-alse-fi logic and added prototype (i.e. it segfaults when enabled) line continuation support. Furthermore, this patch includes Larry Doolittle's work on restructuring some of the data structures that represent the job and child_program, allowing several simplifications and fixing several bugs. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1467 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Mem leak fix from Matt Kraaiandersen2000-12-121-5/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1441 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai to fox sh.c escape problem such thatandersen2000-12-111-1/+3
| | | | | | | | running things like 'echo "\n\tHi\n\t\!"' and 'echo -e "\n\tHi\n\t\!"' behave as under bash. git-svn-id: svn://busybox.net/trunk/busybox@1423 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Put in i to getopt, so i will work...andersen2000-12-081-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1405 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-072-18/+18
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bettwr document the hidden internal sh.c #defines, and which folksandersen2000-12-061-2/+10
| | | | | | | might want to use... git-svn-id: svn://busybox.net/trunk/busybox@1390 69ca8d6d-28ef-0310-b511-8ec308f3f277
* patch from Larry Doolittle to rename BB_FEATURE_SH_BUILTINS_ALWAYS_WINandersen2000-12-061-2/+2
| | | | | | | to the more pedantically correct BB_FEATURE_SH_APPLETS_ALWAYS_WIN. git-svn-id: svn://busybox.net/trunk/busybox@1386 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove #ifdef __STDC__ junk. We don't do K&R round these parts,andersen2000-12-011-14/+2
| | | | | | | so no point acting like we do. git-svn-id: svn://busybox.net/trunk/busybox@1361 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-012-22/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply some patches from Gennady Feldman <gfeldman@mail.com> toandersen2000-11-301-39/+65
| | | | | | | | . /etc/profile, and to emulate bash prompt. I've cleaned up his patches a bit and all looks good now... git-svn-id: svn://busybox.net/trunk/busybox@1359 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Larry Doolittle (with minor touchups from me so everything compilesandersen2000-11-301-0/+1
| | | | | | | | and works) to use the applet definitions in applets.h to autogenerate the applet function and usage prototypes. git-svn-id: svn://busybox.net/trunk/busybox@1354 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix escape char problem.andersen2000-11-301-4/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1353 69ca8d6d-28ef-0310-b511-8ec308f3f277
* "I will always compile before I commit."andersen2000-11-171-1/+1
| | | | | | | | | "I will always compile before I commit." "I will always compile before I commit." -Erik git-svn-id: svn://busybox.net/trunk/busybox@1324 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up builtin overrides, and hack in the binary search for findingandersen2000-11-171-28/+32
| | | | | | | matching applets into the shell. git-svn-id: svn://busybox.net/trunk/busybox@1323 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a new FEATURE (off by default) BB_FEATURE_SH_BUILTINS_ALWAYS_WIN.andersen2000-11-171-1/+18
| | | | | | | Make the sh default to using external commands when a path is provided. git-svn-id: svn://busybox.net/trunk/busybox@1321 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Gennady Feldman <gfeldman@tradeline.net> to:andersen2000-11-141-23/+34
| | | | | | | | | 1. Opens redirections w/ the right access. 2. Doesn't do globbing for every single parameter (so it doesn't stat every parameter). git-svn-id: svn://busybox.net/trunk/busybox@1299 69ca8d6d-28ef-0310-b511-8ec308f3f277