Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
global zlogout and .zlogout
- X-seq: zsh-workers 473
- From: Richard Coleman <coleman@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: global zlogout and .zlogout
- Date: Wed, 18 Oct 1995 01:59:14 -0400
- In-reply-to: Your message of "Wed, 06 Sep 1995 18:37:31 +0200." <199509061637.SAA02444@xxxxxxxxxxxxxxxxx>
> > I've just grabed Zoltan's release, after MANY trials :-( Without
> > ncftp's nifty appending get I wouldn't have managed...
> >
> > I noticed that the global zlogout is not sourced if NORCS is set. I
> > think this is wrong, it should always be executed, just like the
> > global zshenv.
>
> I think that the same holds for the vanilla beta10. zlogout should be
> executed if zlogin (or zprofile) executed on login. Currently zlogout
> executed only on exit from login shells if NO_RCS is not set.
I'm going back through old mail, so I was looking at this problem
again. I'm want to know what everyone this is the most usual
behavoir.
Currently in the zsh baseline, the global zlogout is only
executed for a login shell if NO_RCS is not set and the shell is
interactive. This is definitely wrong. My first reaction is to have
the global zlogout always executed (regardless of NO_RCS) when a login
shell is exiting. This is the way the global zlogin file is handled.
Also, I now realize another potential problem. When the init scripts
are sourced when the shell is starting up, there is a hack (setting the
sourcelevel to 32768) that prevents an error in these scripts from tripping
ERREXIT. This same should probably apply to the global zlogout and .zlogout.
What does everyone think?
rc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author