~vcs-imports/busybox/trunk

Viewing all changes in revision 16451.

  • Committer: Denys Vlasenko
  • Date: 2020-02-16 18:14:45 UTC
  • Revision ID: git-v1:4ccddc8fb37b7f585c2d62f6e61ad17295399aff
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: