Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!umd5!ncifcrf!nlm-mcs!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.unix.questions Subject: Re: Using exit in a Bourne shell script Message-ID: <8260@brl-smoke.ARPA> Date: 29 Jul 88 04:22:32 GMT References: <16540@brl-adm.ARPA> <3733@okstate.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <3733@okstate.UUCP> goog@okstate.UUCP (GOOG ??) writes: >In article <16540@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.