test05.ion 571 B

12345678910111213141516171819202122
  1. #!./testshell
  2. echo 'Test 5: The SIGINT/SIGQUIT-catching program is being run'
  3. echo ' A: The shell should not exit on signals while this program runs.'
  4. echo ' B: After you exited it via C-d, you should be able to end this'
  5. echo ' script with its 3 subhells with just one signal'
  6. echo ' script with just one SIGINT or SIGQUIT'
  7. source lib.ion
  8. ../target/debug/ion -c '
  9. source lib.ion
  10. ../target/debug/ion -c "
  11. source lib.ion
  12. docatcher
  13. echo "Now try to exit with one SIGINT"
  14. endless
  15. "
  16. endless
  17. '
  18. endless