hush: make "exit" in trap use pre-trap exitcode - fix for nested trap
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 Feb 2020 01:55:53 +0000 (02:55 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 Feb 2020 01:55:53 +0000 (02:55 +0100)
commit3ced804e3118d138781c3e4baa6bf1589b9f2dfd
tree963276adb3280dfa605725e20598afe566139f08
parentcc9ecd9af13f04a4814ebdec60942962c3e9f14f
hush: make "exit" in trap use pre-trap exitcode - fix for nested trap

function                                             old     new   delta
check_and_run_traps                                  276     278      +2

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-misc/exitcode_trap6.right [new file with mode: 0644]
shell/ash_test/ash-misc/exitcode_trap6.tests [new file with mode: 0755]
shell/hush.c
shell/hush_test/hush-misc/exitcode_trap6.right [new file with mode: 0644]
shell/hush_test/hush-misc/exitcode_trap6.tests [new file with mode: 0755]