$IGNOREEOF
–
Control how the shell treats EOF
$IGNOREEOF
controls what an interactive shell does when the only EOF is entered.
Control + D
inputs the EOF character.
Links
Examples
- Ignore the first EOF to avoid accidental logouts:
1
IGNOREEOF=1
BashSupport Pro 是一个 支持 $IGNOREEOF 的 Bash 集成开发工具 – 马上试用!