Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
840a4355d035efc360eeefe5da8a11e47b3c80d3
/
.
/
shell
/
hush_test
/
hush-misc
/
wait6.tests
blob: c237131993ab52835f27ec76a87a4875fe9d1235 [
file
] [
log
] [
blame
]
Denys Vlasenko
840a435
2017-07-07 22:56:02 +0200
[
diff
] [
blame^
]
1
# In bash, "wait $!" extracts correct exitcode even if bg task has already exited
2
# It prints 0, then 3:
3
(
sleep
0
;
exit
3
)
&
sleep
1
4
echo $
?
5
wait $
!
6
echo $
?