aboutsummaryrefslogtreecommitdiff
path: root/shell/cmdedit.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* move shell/cmdedit.c -> libbb/lineedit.cvda2007-01-221-1798/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17452 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit is not a 'command' editing anymore, it's just editing (generic),vda2007-01-221-29/+29
| | | | | | | so rename stuff accordingly. git-svn-id: svn://busybox.net/trunk/busybox@17451 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit: fix breakagevda2007-01-221-24/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17449 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit: stop playing dirty games with atexitvda2007-01-221-37/+24
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Convert cmdedit into more generic line input facilityvda2007-01-221-159/+157
| | | | | | | | | (make history and completion optional at runtime). Use it for fdisk, as an example. Some unrelated fixes in fdisk are also here. git-svn-id: svn://busybox.net/trunk/busybox@17446 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Introduce FEATURE_EDITING_FANCY_KEYS, so that user can disablevda2007-01-211-62/+29
| | | | | | | less-known keys (e.g. Ctrl-B/E/F) git-svn-id: svn://busybox.net/trunk/busybox@17440 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit: more optimizationsvda2007-01-211-137/+109
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17439 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit: small optimizationsvda2007-01-211-73/+104
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17438 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sanitize cmdedit a bit (group functions by task etc)vda2007-01-211-393/+366
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17437 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * precision requires the argument be an integer, not size_tvapier2006-12-281-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17101 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2006-12-261-1/+1
| | | | | | | last xcalloc replaced by xzalloc git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #define FEATURE_GETUSERNAME_AND_HOMEDIR should be always #definedvda2006-12-231-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17062 69ca8d6d-28ef-0310-b511-8ec308f3f277
* removal of commented-out cruftvda2006-12-221-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit: reformat code a bit, no algorithm changesvda2006-12-211-233/+230
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17037 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix type character mixup in command completionvda2006-12-211-35/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17036 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit: fix my bug, improve code a bitvda2006-12-191-31/+20
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17007 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit: use qsort for sorting command completion results; style fixesvda2006-12-191-132/+104
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17003 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 1vda2006-11-271-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix kbuild bugs noticed by Bernhard Fischer <rep.nop@aon.at>vda2006-11-021-10/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16490 69ca8d6d-28ef-0310-b511-8ec308f3f277
* #if CONFIG_xxx -> #if ENABLE_xxxvda2006-11-011-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16483 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_get_[chomped]line_from_file wasn't descriptive enough.vda2006-10-121-1/+1
| | | | | | | Renaming... git-svn-id: svn://busybox.net/trunk/busybox@16375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* build system overhaulvda2006-10-051-5/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_applet_name -> applet_namevda2006-10-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* lots of silly indent fixesvda2006-10-031-81/+82
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16302 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damagelandley2006-08-291-2/+2
| | | | | | | | (the e2fsprogs directory is too twisty and evil to easily fix, but I plan to rewrite it anyway so I'll just bump that up in priority a bit). git-svn-id: svn://busybox.net/trunk/busybox@16015 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove xcalloc() and convert its callers to xzalloc(). About half of themlandley2006-08-031-2/+2
| | | | | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack. git-svn-id: svn://busybox.net/trunk/busybox@15771 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-031-8/+8
| | | | | | | | | | | | | 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.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove the silly redundancy from that header file include.rpjday2006-07-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15583 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-021-2/+1
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* vi-mode changes: eliminate warnings from out-of-range-for-typepgf2006-03-071-65/+65
| | | | | | | | | | case labels that are emitted by gcc4. rearrange macros to eliminate these extra case labels entirely (since the optimizer may no longer do it for us). eliminate static BUFSIZ character deletion buffer -- malloc it, and make it much much smaller. git-svn-id: svn://busybox.net/trunk/busybox@14460 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionlandley2006-03-061-2/+2
| | | | | | | definitions. (That should only be on prototypes.) git-svn-id: svn://busybox.net/trunk/busybox@14457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add more bash-like dot-dirs cmdedit featurevodz2006-01-251-96/+107
| | | | | | | Close bug 648. Restore my whitespace git-svn-id: svn://busybox.net/trunk/busybox@13587 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-8/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change interface to bb_xasprintf() - more perfect for me.vodz2005-09-291-1/+1
| | | | | | | ln.c: error_msg(str)->error_msg(%s, str) - remove standart "feature" for hackers reduce 100 bytes don't care in sum git-svn-id: svn://busybox.net/trunk/busybox@11694 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more remove lost exportedvodz2005-09-221-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11574 69ca8d6d-28ef-0310-b511-8ec308f3f277
* destroy bug [0000404]vodz2005-09-051-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11334 69ca8d6d-28ef-0310-b511-8ec308f3f277
* commiting:pgf2005-08-041-28/+365
| | | | | | | 0000025: vi-editing mode for ash git-svn-id: svn://busybox.net/trunk/busybox@11044 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying:pgf2005-07-191-2/+2
| | | | | | | | | | | 0000054: Tab completing filenames in ash causes SEGV Simple tab completion operations cause busybox (ash) to access illegal addresses. git-svn-id: svn://busybox.net/trunk/busybox@10861 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir N. Oleynik:andersen2004-08-191-0/+1
| | | | | | | | | | | | | | | | | | | On Wed Aug 18, 2004 at 06:52:57PM +0800, Matt Johnston wrote: > I've come across some strange-seeming behaviour when running programs > under Busybox (1.0.0-rc3) ash. If the child process sets stdin to be > non-blocking and then exits, the parent ash will also exit. A quick strace > shows that a subsequent read() from stdin returns EAGAIN (as would be > expected): Thanks! Patch attached. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@9127 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry Doolittle writes:andersen2004-04-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 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 git-svn-id: svn://busybox.net/trunk/busybox@8759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix spelling. "sort of" is two words.andersen2004-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8734 69ca8d6d-28ef-0310-b511-8ec308f3f277
* s/fileno\(stdin\)/STDIN_FILENO/gandersen2004-03-271-1/+1
| | | | | | | s/fileno\(stdout\)/STDOUT_FILENO/g git-svn-id: svn://busybox.net/trunk/busybox@8663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz. last_patch_128bug12004-02-221-6/+8
| | | | | | | | | | - declare applet_using as static from applets.c - small correction to cmdedit, previous version cleared history after Ctrl-C - small spelling correction (by Friedrich Lobenstock) git-svn-id: svn://busybox.net/trunk/busybox@8544 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz last_patch_125_2, this patch have: bug12004-02-041-3/+8
| | | | | | | | | | - synced with dash 0.4.21 - better handle trap "cmds..." SIGINT (strange, i make bad hack for ash and cmdedit, but this work only with this...) - may be haven`t problem with Ctrl-D git-svn-id: svn://busybox.net/trunk/busybox@8394 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last_patch_124 from Vodz, fix an ash bug when alt-1 was pressed, debianbug12004-01-221-12/+11
| | | | | | | bug #228915 git-svn-id: svn://busybox.net/trunk/busybox@8334 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz last_patch_122, Check $PATH at runtime to fix tab completionbug12004-01-141-3/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8283 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Declare dependencies of command line editing in the build systembug12004-01-031-11/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8244 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Cmdedit update from Vladimir N. Oleynik (vodz)andersen2003-12-231-22/+24
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8166 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)andersen2003-09-151-5/+3
| | | | | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir N. Oleynik writes:andersen2003-07-291-7/+3
| | | | | | | | | | | Last patch have synced form Manuel Nova III xxreadtoken() function, corrected (C) form dash debian/copyright, removed my small mistake with IFS_BROKEN (thanks by Herbert), and synced cmdedit.c from current CVS (removed libc5 support, your email correction, my (C) year corertion). git-svn-id: svn://busybox.net/trunk/busybox@7129 69ca8d6d-28ef-0310-b511-8ec308f3f277