aboutsummaryrefslogtreecommitdiff
path: root/shell (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | win32: ash: struct varNguyễn Thái Ngọc Duy2010-09-141-0/+18
| | |
| * | win32: ash: macros for implementing simple foo_size, foo_copyNguyễn Thái Ngọc Duy2010-09-141-0/+35
| | |
| * | win32: Support saving pointer location in calcsize()/copynode()Nguyễn Thái Ngọc Duy2010-09-141-0/+45
| | |
| * | win32: ash: nodeckstrdup(): tolerate NULL stringNguyễn Thái Ngọc Duy2010-09-141-1/+3
| | |
| * | win32: ash: FIXMENguyễn Thái Ngọc Duy2010-09-141-1/+1
| | |
| * | win32: ash: reimplement waitpid(-1)Nguyễn Thái Ngọc Duy2010-09-141-0/+53
| | |
| * | win32: ash: find_command(): also find .exeNguyễn Thái Ngọc Duy2010-09-141-0/+21
| | |
| * | win32: ash: openredirect(): support /dev/nullNguyễn Thái Ngọc Duy2010-09-101-0/+25
| | |
| * | win32: ash: copyfd(): work around fcntl(F_DUPFD)Nguyễn Thái Ngọc Duy2010-09-101-0/+12
| | |
| * | win32: ash: stay away from fcntl(F_DUPFD)Nguyễn Thái Ngọc Duy2010-09-101-2/+2
| | |
| * | win32: ash: new implementation for updatepwd()Nguyễn Thái Ngọc Duy2010-09-101-0/+93
| | |
| * | win32: ash: path_advance(): save space for .exe laterNguyễn Thái Ngọc Duy2010-09-101-1/+3
| | |
| * | win32: ash: path_advance(): support both colon and semicolon as path separatorNguyễn Thái Ngọc Duy2010-09-101-0/+10
| | |
| * | win32: ash: preadbuffer(): accept \r\n as line endingNguyễn Thái Ngọc Duy2010-09-101-1/+1
| | |
| * | win32: ash: shellexec(): support both / and \ as dir separatorNguyễn Thái Ngọc Duy2010-09-101-3/+4
| | |
| * | win32: ash: is_absolute_path()Nguyễn Thái Ngọc Duy2010-09-101-2/+2
| | |
| * | win32: ash: skip O_APPEND supportNguyễn Thái Ngọc Duy2010-09-101-2/+2
| | |
| * | win32: ash: exptilde(): do not call (unsupported) getpwnam()Nguyễn Thái Ngọc Duy2010-09-101-0/+2
| | |
| * | win32: ash: forkshell(): return early, MinGW port will have another way to ↵Nguyễn Thái Ngọc Duy2010-09-101-0/+3
| | | | | | | | | | | | "fork"
| * | win32: ash: waitcmd(): return early, not supportedNguyễn Thái Ngọc Duy2010-09-101-0/+3
| | |
| * | win32: ash: setsignal(): return early, signalling is not supportedNguyễn Thái Ngọc Duy2010-09-101-0/+2
| | |
* | | win32: shell/builtin_ulimit.cNguyễn Thái Ngọc Duy2010-09-101-0/+9
|/ /
* / win32: ash: #ifdefNguyễn Thái Ngọc Duy2010-09-101-0/+11
|/
* ash: line up builtin table. no code changesDenys Vlasenko2010-03-261-45/+45
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: trap with bad signal name should not abortDenys Vlasenko2010-03-263-4/+19
| | | | | | | function old new delta trapcmd 236 271 +35 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: merge some common stringsDenys Vlasenko2010-03-231-1/+1
| | | | | | | | text data bss dec hexfilename 838650 8009 0 846659 ceb43busybox_old 838519 8009 0 846528 ceac0busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: make it possible to build them individuallyDenys Vlasenko2010-03-232-6/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix quadratic matching slowdown is ${v/*foo*/repl} (really bad one)Denys Vlasenko2010-03-131-12/+59
| | | | | | | | | | | | | | | | | It is especially bad with patterns starting with "*". With ASH_OPTIMIZE_FOR_SIZE=y, only those are optimized, +few bytes: text data bss dec hex filename 836337 441 7564 844342 ce236 busybox_old 836341 441 7564 844346 ce23a busybox_unstripped With ASH_OPTIMIZE_FOR_SIZE off, we also optimize patterns _ending_ with "*", which costs about 80 bytes: text data bss dec hex filename 836656 441 7564 844661 ce375 busybox_old 836732 441 7564 844737 ce3c1 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell/ulimit: code shrink by 10 bytesDenys Vlasenko2010-03-081-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: use ash's ulimit builtin; make it more more bash0like while at itDenys Vlasenko2010-03-065-215/+253
| | | | | | | | | | | | | | | | | | | Based on a patch by Tobias Klauser <tklauser@distanz.ch> function old new delta shell_builtin_ulimit - 498 +498 limits_tbl 33 88 +55 ulimit_opt_string - 38 +38 bltins1 288 300 +12 limits_name 127 - -127 ulimitcmd 415 7 -408 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/1 up/down: 603/-535) Total: 68 bytes text data bss dec hex filename 839229 453 6828 846510 ceaae busybox_old 839423 453 6828 846704 ceb70 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: use NULL for null pointersDenys Vlasenko2010-03-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Replace __uClinux__ define with !BB_MMUDenys Vlasenko2010-02-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bug 1087. Fix by Leonid (lly.dev AT gmail.com)Denys Vlasenko2010-02-213-2/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: note a FIXMEDenys Vlasenko2010-02-081-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* style fixes, no code changesDenys Vlasenko2010-01-281-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: style fixes. no code changes (verified with objdump)Denys Vlasenko2010-01-282-7/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: more "greppable" field names. no code changesDenys Vlasenko2010-01-281-13/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2010-01-253-11/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2010-01-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: remove config items for read options which are no longer optionalDenys Vlasenko2010-01-131-17/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell/read: check that variable names are saneDenys Vlasenko2010-01-135-24/+26
| | | | | | | | | | function old new delta shell_builtin_read 1000 1055 +55 parse_command 1460 1463 +3 builtin_umask 121 123 +2 is_well_formed_var_name 73 66 -7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* builtin_read: note about better implementationDenys Vlasenko2010-01-131-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: use ash's read builtinDenys Vlasenko2010-01-1218-49/+124
| | | | | | | | | | | | | | | | | function old new delta shell_builtin_read - 1000 +1000 set_local_var_from_halves - 24 +24 setvar2 - 7 +7 ... popstring 140 134 -6 ash_main 1375 1368 -7 setvar 184 174 -10 arith_set_local_var 36 - -36 builtin_read 1096 185 -911 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 5/23 up/down: 1038/-1007) Total: 31 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell/read: fix "'read' without parameters" bash compat thingyDenys Vlasenko2010-01-121-31/+39
| | | | | | | | | | | | | | | | | | | | previous change: function old new delta builtin_read 82 1074 +992 popstring 134 140 +6 readcmd 1034 148 -886 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 998/-886) Total: 112 bytes this change: builtin_read 1074 1096 +22 static.arg_REPLY 8 - -8 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 22/-8) Total: 14 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: split read builtin from ashDenys Vlasenko2010-01-1212-213/+379
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix potential buffer overflow on NOMMUDenys Vlasenko2010-01-121-3/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix subshell.tests failure on NOMMUDenys Vlasenko2010-01-123-41/+88
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: two NOMMU fixes for bugs 877 and 883Denys Vlasenko2010-01-123-3/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use monotonic_msDenys Vlasenko2010-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | function old new delta monotonic_ms - 60 +60 process_stdin 433 443 +10 display_speed 85 90 +5 nmeter_main 672 674 +2 builtin_type 114 116 +2 bb__parsespent 117 119 +2 ifplugd_main 1110 1109 -1 acpid_main 441 440 -1 chat_main 1361 1359 -2 doCommands 2458 2449 -9 arpping 466 450 -16 run_command 268 234 -34 readcmd 1072 1034 -38 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/7 up/down: 81/-101) Total: -20 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: plug a memory leakDenys Vlasenko2010-01-123-0/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>