3
0

wait7.tests 137 B

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