From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2607 invoked from network); 23 Mar 2004 20:31:05 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Mar 2004 20:31:05 -0000 Received: (qmail 10040 invoked by alias); 23 Mar 2004 20:30:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7247 Received: (qmail 9959 invoked from network); 23 Mar 2004 20:30:44 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Mar 2004 20:30:44 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 23 Mar 2004 20:30:44 -0000 Received: (qmail 28324 invoked from network); 23 Mar 2004 20:30:43 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 23 Mar 2004 20:30:42 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B5sXp-0002yN-00 for ; Tue, 23 Mar 2004 21:30:41 +0100 Received: from isi-dialin-129-3.isionline-dialin.de ([195.158.129.3]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Mar 2004 21:30:41 +0100 Received: from thorsten by isi-dialin-129-3.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Mar 2004 21:30:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: Re: zlogout not finishing when errors Date: Tue, 23 Mar 2004 21:30:37 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-3.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 * Thorsten Kampe (2004-03-23 19:49 +0100) > [zsh 4.1.1] > > If have put some "cp" commands in my .zlogout. Some files are > sometimes "nonexistant" - depending on the host and the mounts. So I > simply wanted to redirect stderr to /dev/null. > > To my surprise when of these commands errors ("cp nonexistant_file > destination") the rest of .zlogout is not read. So I had to put a "if > [[ -r $file ]]" into .zlogout to make this file finish until the end. > > Of course this is not the behaviour of the other rcfiles (.zprofile, > .zshrc, etc.). > > So my question is: is this a known thing (a bug or a feature)? Okay I found it out (with a little help from PWS): it was the "setopt errreturn". So two questions remain: 1. Who put this setting in my .zshrc ;-)? 2. Why don't the login rcfiles terminate when an error occurs - and just the logout file? Thorsten