Using exit in a Bourne shell script
Juergen Wagner
gandalf at csli.STANFORD.EDU
Wed Jul 20 08:23:17 AEST 1988
How about
set ignoreeof
in your .cshrc. This will prevent you from doing what you're fearing, namely
logging out by hitting ^D. If you want to disable ^D just for the login shell,
you could do the "set ignoreeof" in .login, and "unset ignoreeof" in .cshrc.
You may also want to have some kind of depth count in your prompt line.
--Juergen
--
Juergen "Gandalf" Wagner, gandalf at csli.stanford.edu
Center for the Study of Language and Information (CSLI), Stanford CA
More information about the Comp.unix.questions
mailing list