aboutsummaryrefslogtreecommitdiff
path: root/shell/cmdedit.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fixup the location of pwd.h and grp.handersen2001-10-241-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3572 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-47/+47
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach libc5 what a sighandler_t isandersen2001-08-021-0/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3190 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Scrub away the last leftovers from BB_FEATURE_<shell>. Good thingandersen2001-08-021-1/+1
| | | | | | | | for multibuild.pl -- I would have missed this stupid mess otherwise. -Erik git-svn-id: svn://busybox.net/trunk/busybox@3185 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Latest patch from vodz. Adds a check for divide by zero in the posixandersen2001-08-021-14/+10
| | | | | | | | | math suport, cleaner math syntax error checking, moves redundant signal string tables (from kill and ash) into libbb and provides a few cleanups elsewhere. git-svn-id: svn://busybox.net/trunk/busybox@3181 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some patches to make dietlibc work...andersen2001-07-221-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@3134 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This is vodz' latest patch. Sorry it took so long...andersen2001-07-171-1/+10
| | | | | | | | | | | | 1) ping cleanup (compile fix from this patch already applied). 2) traceroute call not spare ntohl() now (and reduce size); 3) Fix for functions not declared static in insmod, ash, vi and mount. 4) a more simple API cmdedit :)) 5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option 6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd) git-svn-id: svn://busybox.net/trunk/busybox@3103 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz:andersen2001-07-121-62/+26
| | | | | | | | | | Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function git-svn-id: svn://busybox.net/trunk/busybox@3078 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from vodz to fix freeing a static in cmdedit.andersen2001-07-021-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2967 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir's last_patch_15bug12001-06-261-41/+51
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2905 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir to fix up autocompletion on a files/dirs with spaces inandersen2001-05-311-13/+4
| | | | | | | | them in the presence of a quoting. Also revert my signal handling patch, which seems to not solve the problem I thought it solved. git-svn-id: svn://busybox.net/trunk/busybox@2767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bugandersen2001-05-211-7/+7
| | | | | | | #1130 (i.e. When you turn on features it should always ADD features) git-svn-id: svn://busybox.net/trunk/busybox@2690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out job control in both hush and lash was broken by theandersen2001-05-171-0/+4
| | | | | | | | | signal handling in cmdedit.c. Disabling it makes the shells behave themselves again. hush isn't quite there, but is getting close... -Erik git-svn-id: svn://busybox.net/trunk/busybox@2663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a segfault in lash, hush, and cmdedit. Each of these usedandersen2001-05-111-0/+4
| | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@2613 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some patches from Gennady Feldman. Fixed a glob problem such thatandersen2001-04-231-1/+3
| | | | | | | | 'ls *.h Config.h' works. Fixed a silly typo with fg/bg process control. Made cmdedit exit sanely when it cannot read input. git-svn-id: svn://busybox.net/trunk/busybox@2402 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply Vladimir's latest cleanup patch.andersen2001-04-091-152/+97
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add support of /W promptsandersen2001-04-051-0/+13
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2265 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>andersen2001-03-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2163 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix to cmdedit.c from Vladimirandersen2001-03-191-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2138 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit.c bugfix patch from Vladimir.andersen2001-03-151-12/+14
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2105 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - Changed name of BB_FEATURE_SIMPLE_PROMPT to BB_FEATURE_SH_SIMPLE_PROMPTmarkw2001-03-141-8/+8
| | | | | | | | | | | | | | - Set BB_FEATURE_SH_STANDALONE_SHELL and BB_FEATURE_SH_APPLETS_ALWAYS_WIN to be off by default - Set BB_FEATURE_SH_SIMPLE_PROMPT to be on by default - Added some more magic to the Olympus section to make all the dependencies on the shell, cmdline editing, tab completion and friend work properly. - Tidied up the Olympus section with some whitespace. Checked the various scrips that parse through there and the extra whitespace shouldn't break anything. git-svn-id: svn://busybox.net/trunk/busybox@2061 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Update the lash shell (hopefully the last time...) so things likeandersen2001-03-131-76/+97
| | | | | | | | | echo "foo bar" and echo -n "foo\t\\\\\tbar" work as expected. Merge prompt printing work from Vladimir. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2059 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Whitespace / formatting / bracket cleanup.markw2001-03-081-5/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2012 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 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
* 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-161-6/+7
| | | | | | | | | | | 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
* Apply a patch from Larry Doolittle to add "-all" and "-none" switchesandersen2001-02-011-0/+3
| | | | | | | | | | 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
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-1/+1
| | | | 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
* 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
* 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
* #define -> static const int. Also got rid of some big static buffers.markw2001-01-231-3/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1642 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
* 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
* Ok, this is a pretty major update to sh.c. I renamed all the variables andandersen2000-12-181-3/+13
| | | | | | | | | | | | | | | 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
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-1/+1
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Stop using TRUE and FALSE for exit status.kraai2000-12-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cleanup of duplicated symbols -- found by compiling withandersen2000-11-071-1/+1
| | | | | | | LDFLAGS += -Wl,-warn-common git-svn-id: svn://busybox.net/trunk/busybox@1292 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Warning cleanup from Gennady Feldmanandersen2000-11-021-9/+10
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1281 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofkraai2000-09-131-7/+7
| | | | | | | segfaulting or handling errors the same way themselves. git-svn-id: svn://busybox.net/trunk/busybox@1039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More sh updates (with related changes to everything else). Switchedandersen2000-07-281-1/+24
| | | | | | | | | to using getopt and cleaned up the resulting mess. if-then-else-fi is now basically working (given a bunch of constraints). -Erik git-svn-id: svn://busybox.net/trunk/busybox@913 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use BB_FEATURE_CLEAN_UP where appropriateandersen2000-07-251-0/+12
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@904 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid trying to free NULL ptrs. Comment on malloc usages.andersen2000-07-191-4/+6
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@880 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some stupid memory bugs.andersen2000-07-141-2/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added a smallish TODO comment.markw2000-07-131-0/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@837 69ca8d6d-28ef-0310-b511-8ec308f3f277