summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
23bc562)
hush fails this one
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
--- /dev/null
+# "exit" in trap should not use last command's exitcode,
+# but exitcode on entering the trap.
+$THIS_SH -c '
+ trap "false;exit" term
+ kill $$ &
+ (exit 42)
+ wait
+'
+echo 42:$?
--- /dev/null
+# "exit" in trap should not use last command's exitcode,
+# but exitcode on entering the trap.
+$THIS_SH -c '
+ trap "false;exit" term
+ kill $$ &
+ (exit 42)
+ wait
+'
+echo 42:$?