This is probably something that's rehashed every now and then.
Pitfalls in shell's handling of asynch processes.
Four children are launched. They exit out of order:
$ cat k
for i in 2 4 3 1
do
(sleep $i; exit $i) &
done
for i in 1 2 3 4
do
wait %$i
echo $i exit $...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.