test07.sh 599 B

12345678910111213141516171819202122232425
  1. #!./testshell
  2. echo 'Test 7: See whether child can work on SIGINT and SIGQUIT without'
  3. echo ' terminating the shell around it. See if the shell'
  4. echo ' continues the script after the child exits. Do not'
  5. echo ' send SIGINT after the child exits.'
  6. if [ $ZSH_VERSION ] ; then
  7. source lib.sh
  8. else
  9. . ./lib.sh
  10. fi
  11. echo
  12. echo 'After the catching program, you should see 4 lines of text, sent'
  13. echo 'with one second delay each'
  14. docatcher
  15. echo 'You should see 3 more lines'
  16. sleep 1
  17. echo 'You should see 2 more lines'
  18. sleep 1
  19. echo 'You should see 1 more line'
  20. sleep 1
  21. echo 'Done'