aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* slightly better wording in commentsDenys Vlasenko2011-02-211-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix ash-signals/signal8 testcase failureDenys Vlasenko2011-02-212-0/+42
| | | | | | | | | | | function old new delta killcmd 109 224 +115 kill_main 882 910 +28 changepath 194 195 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 144/0) Total: 144 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* echo: do not retry on write errorsDenys Vlasenko2011-02-073-0/+10
| | | | | | | | | | | | | function old new delta echo_main 297 336 +39 stpcpy - 22 +22 run_pipe 1561 1566 +5 pseudo_exec_argv 187 192 +5 hush_exit 75 80 +5 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-292-13/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* ash: fix signal and "set -e" interactionDenys Vlasenko2010-09-254-0/+45
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell/math: deconvolute and explain ?: handling. Give better error messageDenys Vlasenko2010-09-161-1/+1
| | | | | | | function old new delta arith_apply 1271 1283 +12 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* shell/math: return string error indicator, not integerDenys Vlasenko2010-09-151-28/+28
| | | | | | | | | | | | | | | | function old new delta expand_and_evaluate_arith 87 106 +19 expand_one_var 1563 1570 +7 arith 12 18 +6 evaluate_string 678 680 +2 arith_apply 1269 1271 +2 builtin_umask 133 132 -1 ash_arith 118 75 -43 expand_vars_to_list 1094 1038 -56 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/3 up/down: 36/-100) Total: -64 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* hush: add support for ${var/pattern/repl}, conditional on bash compatDenys Vlasenko2010-09-051-7/+0
| | | | | | | | | | | | function old new delta expand_vars_to_list 2386 2833 +447 expand_string_to_string 69 110 +41 parse_dollar 681 721 +40 hush_main 963 945 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 528/-18) Total: 510 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* hush: fix handling of backslashes in variable assignmentDenys Vlasenko2010-09-041-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* ash: add another ${v/a/b} test we currently failDenys Vlasenko2010-08-302-0/+15
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* ash: fix another bit of var_bash4 bugDenys Vlasenko2010-08-072-2/+2
| | | | | | | | | | 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>
* var_bash4.tests: better wording in commentDenys Vlasenko2010-08-061-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update var_bash4 test. one more bug revealed by it now...Denys Vlasenko2010-08-062-8/+68
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: extend var_bash4.tests; nocode changesDenys Vlasenko2010-08-052-2/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: add a testcase for bug 2281 (currently fails). Small code cleanups.Denys Vlasenko2010-08-055-40/+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>
* ash: fix $! value when traps are setAlexander Shishkin2010-07-252-0/+19
| | | | | Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix obscure case of replacing + globbing + backslashesDenys Vlasenko2010-06-262-0/+31
| | | | | | | | | | | | | | | 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>
* ash: <> redir should not truncateAndreas Bühmann2010-06-242-0/+6
| | | | | Signed-off-by: Andreas Bühmann <buehmann@users.berlios.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix unset in standalone modeDenys Vlasenko2010-06-182-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix redirection of fd 0 in scripts are sourced from interactive ashDenys Vlasenko2010-06-032-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix var_leak.tests so that it actually catches the NOFORK bugDenys Vlasenko2010-05-182-1/+7
| | | | | | + document the bug better Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix bug which causes signal6.tests to failDenys Vlasenko2010-05-181-1/+0
| | | | | | | | function old new delta trapcmd 271 277 +6 localcmd 277 275 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix var_leak testcaseDenys Vlasenko2010-05-182-6/+16
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix testsuite false positivesDenys Vlasenko2010-05-183-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix ". empty_file" exitcode. +5 bytesDenys Vlasenko2010-05-171-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix false positive in signal5.testsDenys Vlasenko2010-05-172-5/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add two more tests which currently failDenys Vlasenko2010-05-172-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix signal5.testsDenys Vlasenko2010-05-171-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: add two testcases for (not yet fixed) ash bugsDenys Vlasenko2010-05-174-0/+31
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: trap with bad signal name should not abortDenys Vlasenko2010-03-262-0/+9
| | | | | | | function old new delta trapcmd 236 271 +35 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bug 1087. Fix by Leonid (lly.dev AT gmail.com)Denys Vlasenko2010-02-212-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: split read builtin from ashDenys Vlasenko2010-01-122-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix for read $IFS splitting. Closes bug 235Denys Vlasenko2010-01-082-14/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* laguage and copyright date corrections, no code changesDenys Vlasenko2009-10-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: make one testsuite entry more robustDenys Vlasenko2009-10-091-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: make trap output short signal names, without SIG prefixDenys Vlasenko2009-09-272-8/+8
| | | | | | | | | function old new delta evalvar 1373 1371 -2 builtin_trap 457 441 -16 trapcmd 260 236 -24 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: better handling of EXIT trap in `trap` hackDenys Vlasenko2009-09-252-2/+10
| | | | | | | | | | | | | | function old new delta forkchild - 602 +602 trapcmd 255 347 +92 ash_main 1362 1375 +13 evalvar 1371 1373 +2 popstring 140 134 -6 forkshell 835 248 -587 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/2 up/down: 709/-593) Total: 116 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix `trap`Denys Vlasenko2009-09-233-5/+14
| | | | | | | | | | | | function old new delta forkshell 738 810 +72 popstring 134 140 +6 parse_command 1460 1463 +3 evalvar 1373 1371 -2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 81/-2) Total: 79 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add a testcase for reopened bug 585 (not fixed yet)Denys Vlasenko2009-09-163-1/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: add testsuite for bug 585Denys Vlasenko2009-08-292-0/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix . builtinDenys Vlasenko2009-06-143-1/+8
| | | | | | Also, move [[ ]] comment to test.c and expand it Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix $IFS handling in read. closes bug 235Denis Vlasenko2009-03-312-0/+14
|
* ash: better fix for ash -c 'echo 5&' and ash -c 'sleep 5&'Denis Vlasenko2008-11-282-0/+10
| | | | | with testcase
* ash: add testcase for bug 5304Denis Vlasenko2008-10-272-0/+15
|
* dc: conditionalize parts which require libmDenis Vlasenko2008-10-202-0/+4
|
* ash: fix NOEXEC mode - we were forgetting to pass environment!Denis Vlasenko2008-10-202-0/+5
| | | | | | env: promote to NOEXEC hd: promote to NOEXEC, as hexdump is NOEXEC already
* ash: fix a bug in standalone mode (corrupted getopt() state)Denis Vlasenko2008-10-202-0/+7
|
* ash: fix "(cat < file)" hang introduced by rev 22944.Denis Vlasenko2008-08-162-0/+5
|
* ash: bash compat: "shift $BIGNUM" is equivalent to "shift 1"Denis Vlasenko2008-07-302-0/+19
|
* ash: add slightly different testcaseDenis Vlasenko2008-07-264-2/+23
|