aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-signals (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ash: improve trap and jobs builtins in child shellsRon Yorston2023-03-312-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | The trap and jobs builtins can be used to report information about traps and jobs. This works when they're called from the current shell but in a child shell the required information is usually cleared. Special hacks allow: - trap to work with command substitution; - jobs to work with command substitution or in a pipeline. Neither works with process substitution. - Relax the test for the trap hack so it also supports pipelines. - Pass the command to be evaluated to forkshell() in evalbackcmd() so trap and jobs both work with process substitution. function old new delta forkchild 629 640 +11 argstr 1502 1496 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 11/-6) Total: 5 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: output bash-compat killing signal namesDenys Vlasenko2020-10-242-0/+37
| | | | | | | | | This significantly syncronises ash-signals and hush-signals tests. function old new delta process_wait_result 449 450 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: copy three tests from hush_test/hush-signals/*Denys Vlasenko2017-07-246-0/+74
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixesDenys Vlasenko2016-10-261-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash testsuite: add most of hust tests which pass for ashDenys Vlasenko2016-10-032-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash,hush: add a test that "continue" does not cripple trapsDenys Vlasenko2016-10-012-0/+8
| | | | | | Both shells pass this test. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash testsuite: add return_in_trap1.testsDenys Vlasenko2016-10-012-0/+22
| | | | | | Currently it fails Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash testsuite: remove two inadvertent bashismsDenys Vlasenko2016-10-011-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: do not leave SIGQUIT ignored on "exec CMD"Denys Vlasenko2016-07-162-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>
* ash: fix signal and "set -e" interactionDenys Vlasenko2010-09-254-0/+45
| | | | 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 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 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>
* 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-172-0/+26
| | | | 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>
* 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>
* ash: add testcase for bug 5304Denis Vlasenko2008-10-272-0/+15
|
* ash: add slightly different testcaseDenis Vlasenko2008-07-264-2/+23
|
* ash: fix testcase to not sleep for whole 10 seconds,Denis Vlasenko2008-07-262-12/+11
| | | | | gets annoying pretty fast. Also fix wrong message there.
* ash: hopefully close bug 4324. With testcase.Denis Vlasenko2008-07-262-0/+21
| | | | | | | function old new delta evaltree 621 869 +248 popstring 134 140 +6
* ash: add a testcase for recently fixed signal bugDenis Vlasenko2008-02-132-0/+44