test03.ion 508 B

12345678910111213141516
  1. #!./testshell
  2. echo 'Test 3: A background job is being started, then the shell loops.'
  3. echo ' You should be able to break the shell loop with SIGINT.'
  4. echo ' This goes wrong if the shell blocks signals when'
  5. echo ' starting any child. It should do so only for foreground'
  6. echo ' jobs.'
  7. echo ' Make sure you type SIGINT before wc completes'
  8. source lib.ion
  9. echo Starting job
  10. tar cvf - --xz ../target/debug/ion | tar xvfJ - | wc &
  11. echo 'Now try to break this loop'
  12. endless