Using exit in a Bourne shell script

Andries Brouwer aeb at cwi.nl
Fri Jul 22 07:22:15 AEST 1988


In article <16540 at brl-adm.ARPA> iunix1 at almsa-1.arpa (Will Martin) writes:
> I often hit a CTRL-D at my top-level shell and get logged
> off when I really did not want to log off.

If you are using ksh or csh: set ignoreeof .
For the Bourne shell: you might try to use another prompt on
the outermost level (set PS1="@@@ " in your .profile, and do not export it).

-- 
      Andries Brouwer -- CWI, Amsterdam -- uunet!mcvax!aeb -- aeb at cwi.nl



More information about the Comp.unix.questions mailing list