From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7201 invoked from network); 28 Jul 2000 11:32:47 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Jul 2000 11:32:47 -0000 Received: (qmail 27869 invoked by alias); 28 Jul 2000 11:32:00 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3343 Received: (qmail 27861 invoked from network); 28 Jul 2000 11:32:00 -0000 Date: Fri, 28 Jul 2000 14:31:56 +0300 (EEST) From: Juhapekka Tolvanen To: zsh-user mailing list Subject: Bug or feature? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT 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 # }}} Bash, ash and pdksh really sources my ~/.sh_logout during logout because of that trap but my zsh does not. So I had to create ~/.zlogout that has just these lines: # ~/.zlogout # echo ~/.zlogout . ~/.sh_logout Is this bug or feature? If it is bug, warn me, when that bug is fixed, so I can delete that ~/.zlogout. You may ask, where I heard about such hack. Right this way: http://www.oreilly.com/ http://unix.oreilly.com/ http://www.oreilly.com/catalog/upt2/ http://www.oreilly.com/catalog/upt2/examples/ http://www.oreilly.com/catalog/upt2/examples/#sh_logout ftp://ftp.oreilly.com/pub/examples/power_tools/unix/split/sh_logout # IF YOU USE bash, COPY THIS FILE INTO $HOME/.bash_logout . # FOR OTHER SHELLS WITHOUT A LOGOUT FILE, PUT THIS INTO $HOME/.sh_logout # AND ADD THE FOLLOWING LINE TO YOUR .profile: # trap '. $HOME/.sh_logout; exit' 0 BTW that "Drill-book" really rules, although it does not have something about Zsh. -- Juhapekka "naula" Tolvanen * U of Jyväskylä * juhtolv@st.jyu.fi http://www.cc.jyu.fi/~juhtolv/ * * "STRAIGHT BUT NOT NARROW !!" --------------------------------------------------------------- "if i was twice the man i could be, i'd still be half of what you need" Nine Inch Nails