Using exit in a Bourne shell script
Doug Gwyn
gwyn at brl-smoke.ARPA
Fri Jul 29 14:22:32 AEST 1988
In article <3733 at okstate.UUCP> goog at okstate.UUCP (GOOG ??) writes:
>In article <16540 at brl-adm.ARPA> [Martin at Almsa-1] write[s]:
>>I often hit a CTRL-D at my top-level shell and get logged
>>off when I really did not want to log off -- I thought that I was under
>>my message-reading program, for example, and wanted to get back to it.
>I had this problem also, and to combat it I put a line in my .login (not
>.logout...) that states:
>set ignoreeof
Ahem, that's not a Bourne shell you're using (see the Subject line).
The answer is, the best way to obtain accidental logout protection
for the Bourne shell is to get BRL's version and add "set -E" to
your .profile.
More information about the Comp.unix.questions
mailing list