$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.

Examples

Ignore the first EOF to avoid accidental logouts:
1
IGNOREEOF=1
BashSupport Pro is a Bash IDE with support for $IGNOREEOFtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal