Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!rutgers!okstate!goog From: goog@a.cs.okstate.edu (GOOG ??) Newsgroups: comp.unix.questions Subject: Re: Using exit in a Bourne shell script Keywords: qwerty, uiop, asdf Message-ID: <3733@okstate.UUCP> Date: 19 Jul 88 20:15:25 GMT References: <16540@brl-adm.ARPA> Reply-To: goog@okstate.UUCP (GOOG ??) Organization: Department of Computing and Information Sciences, Oklahoma State University Lines: 28 In article <16540@brl-adm.ARPA> you write: > ... >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 thought at first that I >could do something with stty "eof" or suchlike settings that could make >my actual logoff character someting other than CTRL-D, so I could use >that to kill subshells, but not my top-level shell, but I've been told >that won't work. > I had this problem also, and to combat it I put a line in my .login (not .logout...) that states: set ignoreeof and that does it. It will allow you to use Ctrl-D from anywhere to quit things but not to logout. It forces you to type the word logout to logout. I hope this is what you were wanting. Steve Koinm Internet: goog@a.cs.okstate.edu Systems Administrator steve@nemo.math.okstate.edu Department of Mathematics Oklahoma State University UUCP: rutgers!okstate!goog Stillwater, OK 74078 -------------------------------------------------------------------------------- You are magnetic in your bearing--that's why all the nuts cling to you.