diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-02-20 16:47:01 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-02-20 16:47:01 +0100 |
commit | cd24a506336f84ff2bb3318bc4f2f82dd025f318 (patch) | |
tree | 4b05a48e5211faae670afb7671452a59ab0a89d5 /networking/pscan.c | |
parent | bb095f483827567452ee3501779a84f36719288d (diff) | |
download | busybox-cd24a506336f84ff2bb3318bc4f2f82dd025f318.tar.gz |
ash: Return without arguments in a trap should use status outside traps
Fixes exitcode_trap4.tests.
Upstream commit:
Date: Mon, 6 Oct 2014 21:51:26 +0800
Return without arguments in a trap should use status outside traps
POSIX now requires that return without arguments in a trap should
return the last command status prior to executing traps. This
patch implements this behaviour.
Incidentally this also changes the behaviour of return without
arguments in a loop conditional to use the last exit status in
the body as opposed to the last command in the conditional when
there is one.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/pscan.c')
0 files changed, 0 insertions, 0 deletions