Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: .zlogout RE: Problem w/ ulimit killing compiles on sol 2.4&2.6 ...



"Andrej Borsenkow" wrote:
> Just to mention, that .zlogout is listed in FILES section in manual, but
> never mentioned anywhere in text. In particular, I don't know, if .zlogout
> is _always_ excuted when shell exits (e.g. HUP) or only when exiting with
> exit/logout command. Or only logout?

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.

> BTW if zsh is started as csh, are csh-specific files (.login, .cshrc,
> .logout) executed?

No, because the syntax is do different to have any hope of this
working.

--- Doc/Zsh/files.yo.logout	Wed Jun  3 00:00:27 1998
+++ Doc/Zsh/files.yo	Thu Feb  4 14:43:29 1999
@@ -20,6 +20,9 @@
 Finally, if the shell is a login shell, tt(/etc/zlogin) and
 tt($ZDOTDIR/.zlogin) are read.
 
+When a login shell exits, the files tt($ZDOTDIR/.zlogout) and then
+tt(/etc/zlogout) are read.
+
 If tt(ZDOTDIR) is unset, tt(HOME) is used instead.
 Those files listed above as being in tt(/etc) may be in another
 directory, depending on the installation.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author