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

RE: Bug or feature?



>
> My ~/.zshrc sources my ~/.kshrc via "." (dot) and my ~./kshrc sources my
> ~/.shinit via ".". My ~/shinit has also these lines:
>
> # {{{ Logout
>
> trap '. $HOME/.sh_logout; exit' 0
                                               ^^^ is there a space between '
and 0?
>
> # }}}
>
> Bash, ash and pdksh really sources my  ~/.sh_logout during logout because of
> that trap but my zsh does not.

What version of Zsh?

bor@itsrm2% zsh
bor@itsrm2% trap "print I am exiting ..." 0
bor@itsrm2% exit
I am exiting ...

-andrej



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