Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!wb3ffv!ka3ovk!raysnec!shwake From: shwake@raysnec.UUCP (Ray Shwake) Newsgroups: comp.unix.shell Subject: .logout functionality using ksh Message-ID: <175@raysnec.UUCP> Date: 12 Dec 90 15:31:38 GMT References: <1990Dec11.202750.2435@wpi.WPI.EDU> Organization: IRS/CI - Technical Solutions Branch Lines: 12 fenn@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.