:
Log in
Sign up
1
Matching Annotations
Feb 2021
unix.stackexchange.com
unix.stackexchange.com
How can I handle SIGINT trap with a user prompt in shell script?
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
Collapse view
Share:
Group.
Only group members will be able to view this annotation.
Only me.
No one else will be able to view this annotation.