trapsig.sh
来自「Solaris环境下Shell编程编程」· Shell 代码 · 共 23 行
SH
23 行
#!/bin/sh# Script name: trapsig.shtrap 'echo "Control-C cannot terminate this script."' INTtrap 'echo "Control-\ cannot terminate this script."' QUITtrap 'echo "Control-Z cannot terminate this script."' TSTPecho "Enter any string (type 'dough' to exit)." while truedo echo "Rolling...\c" read string if [ "$string" = "dough" ] then break fidoneecho "Exiting normally"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?