aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|\ \ \ | | |/ | |/|
| * | hush: fix build failure when jobs are disabledMike Frysinger2009-05-201-16/+19
| |/ | | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Thomas Chou <thomas@wytron.com.tw>
| * scriptreplay: new applet. +423 bytesDenys Vlasenko2009-05-196-21/+95
| | | | | | | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * add platform tweaksDenys Vlasenko2009-05-192-79/+89
| | | | | | | | | | | | | | | | login: consider platforms having no domainname field in the utsname struct include/platform.h: define IUCLC to 0 on platforms where it is not defined Signed-off-by: Luca Favatella <slackydeb@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | awk: put at least one NUL between $n. Hopefully closes 337.Denys Vlasenko2009-05-181-4/+5
|/ | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* gzip: fix gzip with many files corrupting some files after firstDenys Vlasenko2009-05-181-38/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* depmod: fix handling of .gz modulesDenys Vlasenko2009-05-183-14/+47
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: small fixesDenys Vlasenko2009-05-171-12/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* line editing: add an option to emit ESC [ 6 n and use resultsDenys Vlasenko2009-05-176-35/+116
| | | | | | | | | This makes line editing able to recognize case when cursor was not at the beginning of the line. It may also be adapted later to find out display size (serial line users would love it). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* xmalloc_[open_]read[_close]: do not ignore xrealloc return valueDenys Vlasenko2009-05-152-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: use read_key to recognize ESC sequence.Denys Vlasenko2009-05-153-176/+158
| | | | | | | | | | | | | | | This fixes several vi mode bugs and prepares for further fixes. function old new delta read_line_input 3287 5511 +2224 remember_in_history - 499 +499 lineedit_read_key - 70 +70 read_key 321 332 +11 input_tab 2823 - -2823 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/0 up/down: 2804/-2823) Total: -19 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* adduser/addgroup: make system id range configurable.Denys Vlasenko2009-05-143-8/+32
| | | | | | By Tito (farmatito AT tiscali.it). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: save 80 bytes by forced de-inliningDenys Vlasenko2009-05-131-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>