aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* suppress warnings about easch <applet>_main() havingvda2007-02-031-2/+2
| | | | | | | no preceding prototype git-svn-id: svn://busybox.net/trunk/busybox@17740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmdedit is not a 'command' editing anymore, it's just editing (generic),vda2007-01-221-9/+9
| | | | | | | so rename stuff accordingly. git-svn-id: svn://busybox.net/trunk/busybox@17451 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Convert cmdedit into more generic line input facilityvda2007-01-221-54/+52
| | | | | | | | | (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_EXEC_PREFER_APPLETS = "re-execute our ownvda2007-01-211-0/+4
| | | | | | | | | executable if we asked to exec someting with argv[0] == known_applet" Use it in init. Also respect PATH in init, remove explicit "/sbin" etc from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu> git-svn-id: svn://busybox.net/trunk/busybox@17426 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix subtle bug inherited from dashvda2007-01-181-4/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Trailing whitespace removal over entire treevda2007-01-111-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17252 69ca8d6d-28ef-0310-b511-8ec308f3f277
* execute "safe applets" exev if not standalone shellvda2007-01-101-1/+1
| | | | | | | (patch by "Eric Spakman" <E.Spakman@inter.nl.net>) git-svn-id: svn://busybox.net/trunk/busybox@17216 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ash: is_safe_applet mustn't affect disabled appletsvda2006-12-261-16/+33
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17085 69ca8d6d-28ef-0310-b511-8ec308f3f277
* merge post-1.3.0 fixesvda2006-12-261-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17084 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2006-12-261-6/+6
| | | | | | | last xcalloc replaced by xzalloc git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* random tiny size savingsvda2006-12-241-11/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17070 69ca8d6d-28ef-0310-b511-8ec308f3f277
* less: implement waiting for input using select(). Rather tricky business.vda2006-12-241-1/+1
| | | | | | | But we do not read entire input anymore up-front. git-svn-id: svn://busybox.net/trunk/busybox@17067 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce LONE_CHAR (optimized strcmp with one-char string)vda2006-12-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* su: make /etc/shells check configurablevda2006-12-191-1/+1
| | | | | | | ash: missing ';' git-svn-id: svn://busybox.net/trunk/busybox@17000 69ca8d6d-28ef-0310-b511-8ec308f3f277
* xfuncs.c: dietlibc actually HAS fdprintf!vda2006-12-181-9/+11
| | | | | | | | platform.h: define strchrnul for dietlibc ash: stop using few non-standard functions git-svn-id: svn://busybox.net/trunk/busybox@16998 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A bunch of defined(__GLIBC__) added. static-linking warning expandedvda2006-12-181-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16996 69ca8d6d-28ef-0310-b511-8ec308f3f277
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]vda2006-12-161-7/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16977 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix remaining survivors of the return(a) cleanupvda2006-11-271-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16692 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 2vda2006-11-271-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16691 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style cleanup: return(a) -> return a, part 1vda2006-11-271-5/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16690 69ca8d6d-28ef-0310-b511-8ec308f3f277
* httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net!vda2006-11-211-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16596 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add -Wundef, fix uncovered bugsvda2006-11-171-27/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16571 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ash: fix segfault in ash.vda2006-10-161-1/+5
| | | | | | | patch by walter harms <wharms@bfs.de> git-svn-id: svn://busybox.net/trunk/busybox@16394 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fixes from Vladimir Dronnikov <dronnikov@gmail.ru>vda2006-10-101-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16358 69ca8d6d-28ef-0310-b511-8ec308f3f277
* build system overhaulvda2006-10-051-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_applet_name -> applet_namevda2006-10-031-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* several fixes from openWRT projectvda2006-09-261-0/+39
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16229 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damagelandley2006-08-291-57/+32
| | | | | | | | (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 bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-031-2/+2
| | | | | | | | | | | | | 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
* Cleaup read() and write() variants, plus a couple of new functions likelandley2006-07-161-5/+5
| | | | | | | xlseek and fdlength() for the new mkswap. git-svn-id: svn://busybox.net/trunk/busybox@15703 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A couple things that got tangled up in my tree, easier to check in both thanlandley2006-07-121-19/+8
| | | | | | | | | | | | | | | | | untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree. git-svn-id: svn://busybox.net/trunk/busybox@15687 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bug fix from Vladimir Oleynic via Paul Fox for:landley2006-07-061-0/+1
| | | | | | | | | | echo "+bond0" > /sys/class/net/bonding_masters while true; do echo hello done git-svn-id: svn://busybox.net/trunk/busybox@15653 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Get rid of all "#if 0" content.rpjday2006-07-011-5/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15569 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove all usage of the "register" storage class specifier.rpjday2006-07-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15568 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - convert old-style parameter declarations (K&R) to modern style.aldot2006-06-251-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15511 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add note about strict orderingaldot2006-06-211-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15462 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Jean Wolter writes: ash uses bsearch to search in the list of built-in ↵vapier2006-06-211-1/+1
| | | | | | commands, therefore the list of built-in commands has to be ordered. Revision 15077 introduced the source built-in and destroyed this order. And now ash doesn't find the shift command anymore. git-svn-id: svn://busybox.net/trunk/busybox@15461 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upgrade the standalone shell code to use CONFIG_BUSYBOX_EXEC_PATH.landley2006-06-141-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15381 69ca8d6d-28ef-0310-b511-8ec308f3f277
* made "test" an ash built-in.pgf2006-06-081-3/+27
| | | | | | | | | | | | | | | | | | | | | | moved the contents of libbb/bb_echo.c back into coreutils/echo.c, which is a more reasonable place for them than libbb. this forces anyone who wants echo and test to be builtin to ash to also have them available as applets. their cost is very small, and the number of people who wouldn't want them as applets is also very small. added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL, which conflicts with their use. thanks to nathanael copa for debugging help. some string size optimization in test.c may have been lost with this commit, but this is a good new baseline. git-svn-id: svn://busybox.net/trunk/busybox@15344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - reuse strings and messages. Saves about 600Baldot2006-06-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move #include busybox.h to the very top so we pull in the configaldot2006-06-021-4/+3
| | | | | | | and eventual platform specific includes in early. git-svn-id: svn://busybox.net/trunk/busybox@15267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate #include <sys/time.h> so libbb.h does it.landley2006-05-271-1/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - replace _PATH_DEVNULL with bb_dev_nullaldot2006-05-191-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15133 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Lucas C. Villa Real adding "source" as a synonym for the "." command.landley2006-05-121-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15077 69ca8d6d-28ef-0310-b511-8ec308f3f277
* moved BB_BANNER to applets/version.c file: make kernel like version, vodz2006-02-161-2/+3
| | | | | | removed depend loop: busybox.h depend with BB_BT, and all sources depend with busybox.h git-svn-id: svn://busybox.net/trunk/busybox@14080 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix up yet more annoying signed/unsigned and mixed type errorsandersen2006-01-301-12/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* C99 say: "char" declaration may be signed or unsigned defaultvodz2006-01-251-10/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13607 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add more bash-like dot-dirs cmdedit featurevodz2006-01-251-2/+2
| | | | | | | Close bug 648. Restore my whitespace git-svn-id: svn://busybox.net/trunk/busybox@13587 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add platform.h.aldot2006-01-221-23/+11
| | | | | | | - use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277