From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <19990204143000.A2945@fysh.org> Date: Thu, 4 Feb 1999 14:30:00 +0000 From: Phil Pennock To: Zsh users list Subject: Re: .zlogout RE: Problem w/ ulimit killing compiles on sol 2.4&2.6 ... Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailing-List: 2083 Typing away merrily, Peter Stephenson produced the immortal words: > This is a strange omission. It's executed any time a login shell > exits (unless it crashes, obviously). I hope the patch makes it clear > enough. [...] > +When a login shell exits, the files tt($ZDOTDIR/.zlogout) and then > +tt(/etc/zlogout) are read. > + Does a reminder about the effect of exec belong in the manual or the FAQ? I've had to sort out problems for a few people (normally .bash_logout rather than .zlogout) where they just hadn't thought through that using exec foobar would stop the shell sourcing the logout scripts. For those who really want maintenance logs or whatever, but still want to exec something (an interruptible secure program), I usually suggest a function/alias that does a TRAPEXIT/trap '' 0 -- is this really the best idea? -- --> Phil Pennock ; GAT d- s+:+ a23 C++(++++) UL++++/I+++/S+++/B++/H+$ P++@$ L+++ E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+ G+ e+ h* r y?