aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* printf: accept negative numbers for %x; sh: overflowed numbers are 0Denys Vlasenko2009-06-053-4/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* inetd: comment why we redirect stderr to networkDenys Vlasenko2009-06-051-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: reduce #ifdef forestDenys Vlasenko2009-06-053-47/+35
| | | | | | | | Remove unnecessary #if statements from the "more", "script", and "scriptreplay" commands. Bloatcheck says 0 bytes changed. Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add FAST_FUNC to function ptrs where it makes senseDenys Vlasenko2009-06-0522-346/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta evalcommand 1195 1209 +14 testcmd - 10 +10 printfcmd - 10 +10 echocmd - 10 +10 func_exec 270 276 +6 echo_dg 104 109 +5 store_nlmsg 85 89 +4 pseudo_exec_argv 195 198 +3 dotcmd 287 290 +3 machtime_stream 29 31 +2 discard_stream 24 26 +2 argstr 1299 1301 +2 killcmd 108 109 +1 evalfor 226 227 +1 daytime_stream 43 44 +1 run_list 2544 2543 -1 lookupvar 62 61 -1 ipaddr_modify 1310 1309 -1 ... parse_stream 2254 2245 -9 evalpipe 356 347 -9 collect_if 210 197 -13 read_opt 869 851 -18 handle_dollar 681 658 -23 print_addrinfo 1342 1303 -39 iterate_on_dir 156 59 -97 print_route 1709 1609 -100 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 12/130 up/down: 74/-767) Total: -693 bytes text data bss dec hex filename 841748 467 7872 850087 cf8a7 busybox_old 841061 467 7872 849400 cf5f8 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ftpd: fix a case when with -w unknown commands are ignored with no error codeDenys Vlasenko2009-06-041-0/+5
| | | | | Signed-off-by: Stefan Seyfried <seife@suse.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rename CONFIG_FEATURE_TAR_GZIPBernhard Reutner-Fischer2009-06-031-1/+1
| | | | | | | CONFIG_FEATURE_TAR_GZIP was renamed to CONFIG_FEATURE_SEAMLESS_GZ. Adjust testsuite accordingly. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* tweak docsDenys Vlasenko2009-06-031-28/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: document a TODO in export builtinDenys Vlasenko2009-06-031-2/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix a case when backgrounded cmd makes shell hangDenys Vlasenko2009-06-031-0/+2
| | | | | Signed-off-by: Bayram Kurumahmut <kbayram@ubicom.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: add support for local builtinDenys Vlasenko2009-06-036-70/+210
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: touchup argv handlingMike Frysinger2009-06-011-2/+2
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Matt Mackall <mpm@selenic.com>
* bloat-o-meter: fix tab/space mixingMike Frysinger2009-06-011-3/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: stop mixing tabs/spaces for indentationMike Frysinger2009-06-011-37/+37
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* gitignore: add debugging related filesMike Frysinger2009-06-011-0/+7
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush: unify syntax_error_unterm_{ch,str} a bitMike Frysinger2009-06-011-9/+7
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush: push down expansion var in handle_dollar()Mike Frysinger2009-06-011-2/+3
| | | | | | | Declare the variable in the scope it is used rather than the entire function scope so it's obvious it is only used there. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush: add support for special vars in bracesMike Frysinger2009-06-017-8/+9
| | | | | | | Some people like to use ${?} rather than $?, so make sure we support all the special single char vars that use this form. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: filter test output to avoid C lib differencesMike Frysinger2009-06-011-0/+4
| | | | | | | | The getopt function in some C libraries wraps the option in single quotes while others do not. Avoid the issue by running sed on the output and strip all quotes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* lineedit: fix warning about unused label when VI editing is disabledMike Frysinger2009-06-011-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* nc, hush: cosmetic cleanups, no code changesDenys Vlasenko2009-06-012-14/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* read_key: drop optimization where we read 3 bytes at onceDenys Vlasenko2009-05-294-59/+65
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hust: trivial simplification in builtin_typeDenys Vlasenko2009-05-281-3/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix bug 353 (wrong handling of \x in assignments)Denys Vlasenko2009-05-283-22/+31
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: optimize type builtin a bit moreDenys Vlasenko2009-05-281-6/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: optimize type builtin a bitDenys Vlasenko2009-05-281-11/+10
| | | | | | | function old new delta builtin_type 130 125 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* only build common libarchive objs when neededMike Frysinger2009-05-281-1/+7
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* modprobe: fix more bugs in modprobe -rDenys Vlasenko2009-05-281-7/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cpio.tests: fix false positiveDenys Vlasenko2009-05-281-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: implement `type`Mike Frysinger2009-05-271-27/+78
| | | | | | | | | | Implement support for the POSIX `type` command. Only POSIX stuff is supported here, no bash extensions like -p or -P. In the process, split the $PATH searching code out of builtin_source() and into its own find_in_path() function so we don't duplicate it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush: remove outdated TODO and superfluous macro; fix compile breakageDenys Vlasenko2009-05-271-5/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* POSIX conformance documentation for busyboxDavid Krakov2009-05-261-0/+698
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attached a start for POSIX conformance documentation for busybox (see TODO file and discussion last week). A table of all options as defined by POSIX and as implemented by busybox (see for a FreeBSD example http://people.freebsd.org/~schweikh/posix-utilities.html). Only the tools that are stand-alone applets are documented (not ash built-ins as 'read'), as there are multiple shells. When there are two versions (echo) the stand-alone version was checked. I think this may be the wrong way to go, as most users will probably use the built-in version - but which shell? The table was auto-generated by running, for each POSIX utility, latest git allyesconfig* "busybox <tool> --help" and parsing the output, and comparing that to tool options extracted from its man page at http://www.opengroup.org/onlinepubs/9699919799/. This means that it the usage string is not correct, the table is also wrong. I noticed that for 'kill', for example, the usage string does not mention the -s, -q, -o options. For each option is set whether it exists in busybox and if it is, is it compliant to the standard. Of course, checking compliance can only be done manually - a process which will probably take some time (see 'cat' for example). I didn't post the auto-generation script (python, ugly) because the table will now change manually; I can post it if there is anyone interested. As for the tools not implemented by busybox at all, I think most of them are indeed fairly esotetic. Some I was suprised to see missing are link, file, newgrp, unlink. * Well, almost allyesconfig - but nothing very POSIX-y was disabled. Signed-off-by: David Krakov <krakov@gmail.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush: tweak commentDenys Vlasenko2009-05-261-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: rename last_waitpid_was_0 to we_have_childrenDenys Vlasenko2009-05-261-11/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: fix modprobe -r. closes bug 315Denys Vlasenko2009-05-261-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix SIGCHLD counting code, but keep it disabled for now.Denys Vlasenko2009-05-251-19/+66
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* flash_lock, flash_unlock: new appletsDenys Vlasenko2009-05-2510-6/+112
| | | | | | | By Thierry Reding (thierry.reding AT avionic-design.de) Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make compound.tests executableDenys Vlasenko2009-05-231-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix problems with case in subshells and with "case esac"Denys Vlasenko2009-05-234-18/+42
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush_test: add some pathological compound list testsMike Frysinger2009-05-212-0/+35
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: test for subshell function syntaxMike Frysinger2009-05-212-0/+12
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: add subshelled case testsMike Frysinger2009-05-211-0/+12
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: update test output to match new getopt() outputMike Frysinger2009-05-211-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: ignore generated filesMike Frysinger2009-05-211-0/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hdparm: fix a thinko in a previous commitDenys Vlasenko2009-05-201-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busyboxDenys Vlasenko2009-05-202-217/+237
|\
| * hdparm: code shrinkDenys Vlasenko2009-05-201-171/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta parse_opts_0_INTMAX - 12 +12 parse_opts_0_1 - 12 +12 parse_opts_0_max - 9 +9 parse_opts 44 36 -8 process_dev 4679 4578 -101 hdparm_main 1061 854 -207 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 0/3 up/down: 33/-316) Total: -283 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * hdparm: correct (t & 1) ? '0' : '5' thinko; wrap 80+ col linesDenys Vlasenko2009-05-201-43/+83
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busyboxDenys Vlasenko2009-05-201-16/+19
| |\
| * | appletlib.c: prevent applet list overflowing screenDenys Vlasenko2009-05-191-9/+14
| | | | | | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | | Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busyboxDenys Vlasenko2009-05-209-116/+203
|\ \ \ | | |/ | |/|