aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ash: fix compile breakage1_15_2Denys Vlasenko2009-10-081-6/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* apply post-1.15.1 fixesDenys Vlasenko2009-10-0812-232/+467
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Apply post-1.15.0 fixes; bump version to 1.15.11_15_1Denys Vlasenko2009-09-122-4/+59
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* msh: aliased to hushDenys Vlasenko2009-08-214-4/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: enable "lash is deprecated, please use hush instead" messageDenys Vlasenko2009-08-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: do not process options after non-option argsDenys Vlasenko2009-08-203-1/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix bug 571 (jobs %string misbehaving)Denys Vlasenko2009-08-171-5/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hust test: complain if busybox binary can't be foundDenys Vlasenko2009-08-121-6/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix \<newline> handling on NOMMUDenys Vlasenko2009-08-124-11/+37
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush tests: remove the requirement that .config is in ../..Denys Vlasenko2009-08-122-4/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: do not use ps -o in leak_argv1; do not hardcode path in negateDenys Vlasenko2009-08-124-50/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: further fixes to debug machinery (closes bug 485)Denys Vlasenko2009-07-241-6/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: make "jobs" work even in subshellsDenys Vlasenko2009-07-241-2/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix debug machinery a bitDenys Vlasenko2009-07-231-12/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove msh_function.patch. msh is deprecatedDenys Vlasenko2009-07-191-350/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove trailing whitespaceDenys Vlasenko2009-07-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fixes in debug printoutsDenys Vlasenko2009-07-111-8/+9
| | | | | Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix . builtinDenys Vlasenko2009-06-145-44/+22
| | | | | | Also, move [[ ]] comment to test.c and expand it Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: revert over-zealous usage of FAST_FUNCDenys Vlasenko2009-06-111-16/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* added comments about [[ ]] to ash and hush. no code changesDenys Vlasenko2009-06-102-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: add HUSH_BASH_COMPAT, make [[ special handling depend on itDenys Vlasenko2009-06-102-30/+41
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: specially handle [[ - suppress globbing & multiword expansionDenys Vlasenko2009-06-093-20/+138
| | | | | | It's a bashism, but is surprisingly easy to do and costs very little code. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2009-06-091-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: drop REDIRECT_INVALID; other minor tweaksDenys Vlasenko2009-06-071-42/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix a segfault in export builtinDenys Vlasenko2009-06-071-13/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make builtins work in pipes (eval ... | ...) on NOMMUDenys Vlasenko2009-06-064-94/+186
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printf: accept negative numbers for %x; sh: overflowed numbers are 0Denys Vlasenko2009-06-052-4/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: add FAST_FUNC to function ptrs where it makes senseDenys Vlasenko2009-06-052-140/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* hush_test: stop mixing tabs/spaces for indentationMike Frysinger2009-06-011-37/+37
| | | | 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>
* nc, hush: cosmetic cleanups, no code changesDenys Vlasenko2009-06-011-13/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* read_key: drop optimization where we read 3 bytes at onceDenys Vlasenko2009-05-291-2/+2
| | | | 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>
* 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>
* 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>
* 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>
* 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>