~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to shell/hush_test/hush-misc/exitcode_trap4.tests

  • Committer: Denys Vlasenko
  • Author(s): Christian Franke
  • Date: 2023-11-13 10:32:35 UTC
  • Revision ID: git-v1:a63b60bdd6fa26b867c80d44074118babbae7ffd
Cygwin: regenerate defconfig

Signed-off-by: Christian Franke <christian.franke@t-online.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# "return" in trap sets $? after trap
 
2
trap "echo TERM;return 11" term
 
3
f() {
 
4
        (sleep 1; kill $$) &
 
5
        until (exit 42) do (exit 42); done
 
6
}
 
7
f
 
8
echo 11:$?