.logout functionality using ksh <was: A few questions>

Alastair Rae ar at mcdd1
Sat Dec 22 02:38:49 AEST 1990


I get .logout in ksh by the following --

.profile:

	ENV=$HOME/.login

.login:

	alias exit='[ -f ~/.logout ] && . ~/.logout; exit'
	ENV=$HOME/.kshrc
	set -o ignoreeof


OK, so I have to type 'exit' to log off but I can still use ^D in
sub shells.

-- 
.--------------.--------------------.----------------.--------------------.
| Alastair Rae | uunet!ukc!mcdd1!ar | +44 442 272071 | *Usual disclaimer* |
`--------------^--------------------^----------------^--------------------'



More information about the Comp.unix.shell mailing list