busybox/shell/ash_test/ash-misc/wait7.tests

8 lines
137 B
Plaintext
Raw Normal View History

sleep 1 && echo "Background1" &
pid=$!
sleep 3 && echo "Background2: BUG!" &
# Shouldn't wait for 2nd bkgd:
wait $pid
kill $!
echo Ok:$?