aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-68/+40
|\|
| * ash: fix another bit of var_bash4 bugDenys Vlasenko2010-08-071-3/+14
| | | | | | | | | | | | | | | | | | | | But it _still_ doesn't pass! quoted case is a tough nut to crack function old new delta redirect 1281 1286 +5 subevalvar 1141 1142 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: cosmetic fixes, no code changesDenys Vlasenko2010-08-071-60/+21
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix another bug detected by var_bash4.testsDenys Vlasenko2010-08-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ... but var_bash4.tests still does not pass! function old new delta expandarg 959 962 +3 localcmd 259 257 -2 readtoken1 3275 3260 -15 subevalvar 1178 1141 -37 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 3/-54) Total: -51 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix dequoting error detected by var_bash4 testDenys Vlasenko2010-08-061-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | But the test still fails (one more bug to fix) function old new delta changepath 195 192 -3 readtoken1 3247 3240 -7 subevalvar 1204 1184 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-30) Total: -30 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-33/+54
|\|
| * ash: add a testcase for bug 2281 (currently fails). Small code cleanups.Denys Vlasenko2010-08-051-31/+52
| | | | | | | | | | | | | | | | | | | | | | function old new delta changepath 195 192 -3 subevalvar 1204 1200 -4 readtoken1 3247 3240 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-14) Total: -14 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * *: mass cosmetic removal of extra empty lines. no code changesDenys Vlasenko2010-07-261-2/+0
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix $! value when traps are setAlexander Shishkin2010-07-251-0/+1
| | | | | | | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * cttyhack: move build system bits into cttyhack.c, no code changesDenys Vlasenko2010-07-161-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-0/+117
|\| | | | | | | | | Conflicts: shell/ash.c
| * ash: move config stuff into ash.c, no code chagesDenys Vlasenko2010-07-161-0/+117
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-25/+23
|\|
| * ash: fix obscure case of replacing + globbing + backslashesDenys Vlasenko2010-06-261-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta subevalvar 1152 1178 +26 readtoken1 3267 3275 +8 redirect 1284 1286 +2 expandarg 957 958 +1 expdir 4 - -4 evalcommand 1219 1209 -10 expmeta 481 469 -12 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 4/2 up/down: 37/-26) Total: 11 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * build system: do not rebuild ash and hush on any change to any .c fileDenys Vlasenko2010-06-261-3/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: <> redir should not truncateAndreas Bühmann2010-06-241-1/+1
| | | | | | | | | | Signed-off-by: Andreas Bühmann <buehmann@users.berlios.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-31/+13
|\| | | | | | | | | Conflicts: shell/ash.c
| * ash: times builtin: use unsigned type; take free-of-charge moduloDenys Vlasenko2010-06-181-4/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * *: stop defining _GNU_SOURCE in source files, it's in CFLAGS anywayDenys Vlasenko2010-06-181-6/+0
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix unset in standalone modeDenys Vlasenko2010-06-181-0/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: cosmetics, no code changesDenys Vlasenko2010-06-181-23/+7
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-16/+16
|\|
| * fix a few goofs uncovered by "make allnoconfig" testingDenys Vlasenko2010-06-061-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: rename parsefile->fd to ->pf_fdDenys Vlasenko2010-06-031-15/+15
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-10/+25
|\| | | | | | | | | Conflicts: shell/ash.c
| * ash: fix redirection of fd 0 in scripts are sourced from interactive ashDenys Vlasenko2010-06-031-10/+25
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-8/+6
|\|
| * *: better string sharingDenys Vlasenko2010-06-021-8/+6
| | | | | | | | | | | | | | | | text data bss dec hex filename 849427 441 7556 857424 d1550 busybox_old 849355 441 7556 857352 d1508 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | win32: ash: fix up breakages from 8837c5d (ash: remove one redundant ↵Nguyễn Thái Ngọc Duy2010-09-141-8/+8
| | | | | | | | function, improve string sharing, better field names)
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-55/+57
|\|
| * ash: remove one redundant function, improve string sharing, better field namesDenys Vlasenko2010-06-021-55/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta var_end - 15 +15 changepath 194 192 -2 setvareq 222 218 -4 lookupvar 57 51 -6 bltinlookup 57 51 -6 evalfun 452 443 -9 varequal 14 - -14 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/5 up/down: 15/-41) Total: -26 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-2/+0
|\| | | | | | | | | Conflicts: shell/builtin_ulimit.c
| * shell: consolidate builtin_foo.? into shell_common.?; delete obsolete shellsDenys Vlasenko2010-05-231-2/+0
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-26/+22
|\|
| * ash: eliminate 16 bytes in bssDenys Vlasenko2010-05-201-26/+22
| | | | | | | | | | | | | | | | text data bss dec hexfilename 841423 441 7572 849436 cf61cbusybox_old 841430 441 7556 849427 cf613busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-8/+15
|\| | | | | | | | | Conflicts: shell/ash.c
| * ash: fix var_leak.tests so that it actually catches the NOFORK bugDenys Vlasenko2010-05-181-8/+14
| | | | | | | | | | | | + document the bug better Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | Merge branch 'origin/master' (early part)Nguyễn Thái Ngọc Duy2010-09-141-42/+69
|\|
| * typo fixDenys Vlasenko2010-05-181-1/+1
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix bug which causes signal6.tests to failDenys Vlasenko2010-05-181-7/+15
| | | | | | | | | | | | | | | | function old new delta trapcmd 271 277 +6 localcmd 277 275 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash,hush: make bare "." set exitcode to 2Denys Vlasenko2010-05-181-20/+25
| | | | | | | | | | | | | | | | function old new delta dotcmd 300 305 +5 builtin_source 176 171 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash,hush: make "source" a synonym for . if bash compat is onDenys Vlasenko2010-05-171-0/+2
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix ". empty_file" exitcode. +5 bytesDenys Vlasenko2010-05-171-3/+5
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: use CONFIG_FEATURE_EDITING_MAX_LENDenys Vlasenko2010-05-171-7/+6
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: fix signal5.testsDenys Vlasenko2010-05-171-5/+12
| | | | | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| * ash: refresh stack pointers after makestrspace in rmescapesColin Watson2010-04-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this, rmescapes sometimes returns random garbage while performing parameter expansions such as ${foo#bar}, in the event that the allocation of r happens to need to reallocate the stack and hence invalidate str and p. I'd love to provide a test case but unfortunately it's dependent on exact stack layout, so I don't have anything simpler than the situation described in https://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/527401/comments/23 which involved a sequence of foo="${foo#*, }" expansions on a long string inside our RAID configuration tool. The same fix has been in dash since 2007-09-26, contributed by Roy Marples <uberlord@gentoo.org>. I actually came up with it independently almost to the character, but then synced it up with the variable naming used in dash when I noticed that change afterwards. Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* | win32: ash: support .com executablesNguyễn Thái Ngọc Duy2010-09-141-2/+9
| |
* | win32: ash: general comments about MinGW portNguyễn Thái Ngọc Duy2010-09-141-0/+12
| |
* | win32: ash: do not set PPIDNguyễn Thái Ngọc Duy2010-09-141-1/+2
| |
* | win32: ash: work around case-insensitive env varsNguyễn Thái Ngọc Duy2010-09-141-0/+27
| |