Dup Goto 📝

GeneralTips

PT2/shell/bash 03-30 11:13:56
To Pop
11 lines, 44 words, 238 chars Monday 2026-03-30 11:13:56

Prevent Ctrl-D from Exiting

There is a right way to do this:

set -o ignoreeof

Also one can set

IGNOREEOF=10

Note that set -o ignoreeof is the same as IGNOREEOF=10. One could easily set it to a higher number.