Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!labrea!csli!gandalf From: gandalf@csli.STANFORD.EDU (Juergen Wagner) Newsgroups: comp.unix.questions Subject: Re: Using exit in a Bourne shell script Message-ID: <4664@csli.STANFORD.EDU> Date: 19 Jul 88 22:23:17 GMT References: <16540@brl-adm.ARPA> Reply-To: gandalf@csli.stanford.edu (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 11 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@csli.stanford.edu Center for the Study of Language and Information (CSLI), Stanford CA