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

Ray Shwake shwake at raysnec.UUCP
Thu Dec 13 02:31:38 AEST 1990


fenn at wpi.WPI.EDU (Brian Fennell) writes:

>There was a question about .logout for bash... any idea how to fudge
>it with ksh?

	The approach I've used successfully involves trapping the logout
signal (signal 0). Example:

		trap 'tput clear; exit' EXIT

	I use this under SCO and ISC UNIX, among others. On some systems,
the EXIT reference is not recognized, so use 0 instead.



More information about the Comp.unix.shell mailing list