: I like to use ^D to "get lost", and set the env var "export ignoreeof=1".
: Things work as expected in the login shell, but invoking bash
: as a subshell either from the prompt, from inside any application,
: or using su, that shell acts as if ignoreeof=10 even though it
: really is 1. If I unset ignoreeof altogether within a subshell,
: the first ^D blows it away (not exactly fat-finger-proof ;-).
Check and see whether ignoreeof is set elsewhere. It took me a couple
of days to weed out all the ignoreeof=10s and change them to
set +o ignoreeof. there's /etc/profile, of course, and I'm afraid it
was so long ago I can't remember where else I had to do it--for every
computer on our net, too though!
: It seems to be Slackware 1.2 - Linux dependant since I've used bash on
: HPUX and Sun systems without this problem.
I got it from an old SLS. I really think you'll find it's being set
somewhere, and has nothing to do with the version of Linux or Bash.
--
While I'll admit that anyone can make a mistake once,
to go on making the same lethal errors century after
century seems to me nothing short of deliberate.--V.