busybox/shell/ash_test/ash-misc
Denys Vlasenko 4ccddc8fb3 ash: [BUILTIN] Exit without arguments in a trap should use status outside traps
Upstream commit:

    Date:   Mon Oct 6 10:39:47 2014 +0800
    [BUILTIN] Exit without arguments in a trap should use status outside traps

    POSIX now requires that exit without arguments in a trap should
    return the last command status prior to executing traps.  This
    patch implements this behaviour.

    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2020-02-16 19:14:45 +01:00
..
and-or.right
and-or.tests
assignment1.right
assignment1.tests
assignment2.right shell: some additions to *sh-misc/* tests 2017-07-24 18:51:40 +02:00
assignment2.tests shell: some additions to *sh-misc/* tests 2017-07-24 18:51:40 +02:00
assignment3.right
assignment3.tests
assignment4.right
assignment4.tests
assignment5.right hush: fix "set -e; false || x=1; echo OK" 2018-04-03 11:21:13 +02:00
assignment5.tests hush: fix "set -e; false || x=1; echo OK" 2018-04-03 11:21:13 +02:00
break1.right
break1.tests
break2.right
break2.tests
break3.right
break3.tests
break4.right
break4.tests
break5.right
break5.tests
builtin1.right
builtin1.tests
case1.right
case1.tests
colon.right
colon.tests
command2.right
command2.tests
command.right
command.tests
compound.right
compound.tests
continue1.right
continue1.tests
continue2.right
continue2.tests
continue3.right
continue3.tests
control_char1.right hush: fix raw ^C handlisg in single-quoted strings 2018-01-13 19:14:27 +01:00
control_char1.tests hush: fix raw ^C handlisg in single-quoted strings 2018-01-13 19:14:27 +01:00
control_char2.right hush: fix handling of ^C in eval 2018-01-11 13:17:30 +01:00
control_char2.tests hush: fix handling of ^C in eval 2018-01-11 13:17:30 +01:00
echo_write_error.right
echo_write_error.tests
empty_args.right shell: some additions to *sh-misc/* tests 2017-07-24 18:51:40 +02:00
empty_args.tests shell: some additions to *sh-misc/* tests 2017-07-24 18:51:40 +02:00
empty_for1.right hush: fix another case where empty "for" wasn't setting exitcode to 0 2018-07-28 12:42:08 +02:00
empty_for1.tests hush: fix another case where empty "for" wasn't setting exitcode to 0 2018-07-28 12:42:08 +02:00
empty_for2.right
empty_for2.tests
empty_for.right
empty_for.tests
env_and_func.right ash: eval: Variable assignments on functions are no longer persistent 2018-08-05 11:14:11 +02:00
env_and_func.tests ash: eval: Variable assignments on functions are no longer persistent 2018-08-05 11:14:11 +02:00
errexit1.right
errexit1.tests
eval1.right
eval1.tests
eval2.right
eval2.tests
exec.right
exec.tests
exit1.right
exit1.tests
exitcode1.right
exitcode1.tests
exitcode2.right ash: fix error code regression 2017-01-03 11:18:23 +01:00
exitcode2.tests ash: fix error code regression 2017-01-03 11:18:23 +01:00
exitcode_EACCES.right
exitcode_EACCES.tests
exitcode_ENOENT.right
exitcode_ENOENT.tests
exitcode_trap1.right ash: [BUILTIN] Exit without arguments in a trap should use status outside traps 2020-02-16 19:14:45 +01:00
exitcode_trap1.tests ash: [BUILTIN] Exit without arguments in a trap should use status outside traps 2020-02-16 19:14:45 +01:00
export1.right shells: add tests for backslashes in export VAR=VAL 2019-05-14 19:15:20 +02:00
export1.tests shells: add tests for backslashes in export VAR=VAL 2019-05-14 19:15:20 +02:00
for_with_bslashes.right hush: fix raw ^C handlisg in single-quoted strings 2018-01-13 19:14:27 +01:00
for_with_bslashes.tests hush: fix raw ^C handlisg in single-quoted strings 2018-01-13 19:14:27 +01:00
for_with_keywords.right
for_with_keywords.tests
for.right
for.tests
func1.right
func1.tests
func2.right
func2.tests
func3.right
func3.tests
func4.right
func4.tests
func5.right hush: support "f() (cmd)" functions 2018-04-03 14:56:52 +02:00
func5.tests hush: support "f() (cmd)" functions 2018-04-03 14:56:52 +02:00
func_args1.right
func_args1.tests
func_bash1.right
func_bash1.tests
func_compound1.right hush: support "f() (cmd)" functions 2018-04-03 14:56:52 +02:00
func_compound1.tests hush: support "f() (cmd)" functions 2018-04-03 14:56:52 +02:00
func_local1.right
func_local1.tests
func_local2.right
func_local2.tests
func_prio_over_builtins.right hush: functions have priority over builtins (!) 2017-07-31 05:27:09 +02:00
func_prio_over_builtins.tests hush: functions have priority over builtins (!) 2017-07-31 05:27:09 +02:00
func_return1.right hush: fix "true | func_with_return" not allowing return. 2017-07-31 18:02:28 +02:00
func_return1.tests hush: fix "true | func_with_return" not allowing return. 2017-07-31 18:02:28 +02:00
func_return2.right hush: fix "true | func_with_return" not allowing return. 2017-07-31 18:02:28 +02:00
func_return2.tests hush: fix "true | func_with_return" not allowing return. 2017-07-31 18:02:28 +02:00
group_in_braces.right
group_in_braces.tests
if_false_exitcode.right
if_false_exitcode.tests
last_amp.right
last_amp.tests
local1.right
local1.tests
local2.right
local2.tests
nommu1.right
nommu1.tests
nommu2.right
nommu2.tests
nommu3.right
nommu3.tests
nulltick1.right
nulltick1.tests
opts1.right
opts1.tests
pid.right
pid.tests
pipefail.right
pipefail.tests
read.right
read.tests
return1.right
return1.tests
shift1.right
shift1.tests hush: Print error messages on shift -1 2017-07-06 20:12:44 +02:00
shift.right
shift.tests
source1.right
source1.tests
source2.right
source2.tests
source3.right
source3.tests
source5.right
source5.tests
source_argv_and_shift.right hush: fix a bug in argv restoration after sourcing a file 2017-01-09 08:13:21 +01:00
source_argv_and_shift.tests hush: fix a bug in argv restoration after sourcing a file 2017-01-09 08:13:21 +01:00
tickquote1.right
tickquote1.tests hush: add tickquote1.tests from ash testsuite 2017-07-06 18:31:47 +02:00
unicode1.right
unicode1.tests Spelling fixes in comments, documentation, tests and examples 2017-04-17 16:13:32 +02:00
until1.right
until1.tests
wait4.right hush: rework "wait %jobspec" to work in non-interactive shells too 2016-11-08 00:59:29 +01:00
wait4.tests hush: rework "wait %jobspec" to work in non-interactive shells too 2016-11-08 00:59:29 +01:00
wait5.right hush: rework "wait %jobspec" to work in non-interactive shells too 2016-11-08 00:59:29 +01:00
wait5.tests hush: rework "wait %jobspec" to work in non-interactive shells too 2016-11-08 00:59:29 +01:00
wait6.right hush: fix "(sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?" 2017-07-07 22:56:02 +02:00
wait6.tests hush: fix "(sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?" 2017-07-07 22:56:02 +02:00
while1.right
while1.tests
while2.right
while2.tests
while4.right
while4.tests
while_in_subshell.right
while_in_subshell.tests