Log in Sign up
1 Matching Annotations
  1. Feb 2021
  2. unix.stackexchange.com unix.stackexchange.com
    How can I handle SIGINT trap with a user prompt in shell script?
    1
    1. TylerRick 21 Feb 2021
      in Public
      read -rep $'\nDo you wish to stop playing?(y/n)' yn
      shell: read
    Visit annotations in context

    Tags

    • shell: read

    Annotators

    • TylerRick

    URL

    unix.stackexchange.com/questions/240602/how-can-i-handle-sigint-trap-with-a-user-prompt-in-shell-script
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy