From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1043 invoked from network); 23 Mar 2004 19:16:56 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Mar 2004 19:16:56 -0000 Received: (qmail 268 invoked by alias); 23 Mar 2004 19:16:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19680 Received: (qmail 258 invoked from network); 23 Mar 2004 19:16:49 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Mar 2004 19:16:49 -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 19:16:49 -0000 Received: (qmail 8988 invoked from network); 23 Mar 2004 19:16:49 -0000 Received: from lhuumrelay3.lnd.ops.eu.uu.net (62.189.58.19) by a.mx.sunsite.dk with SMTP; 23 Mar 2004 19:16:47 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i2NJGHv26899 for ; Tue, 23 Mar 2004 19:16:18 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id ; Tue, 23 Mar 2004 19:15:51 +0000 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 23 Mar 2004 19:18:45 +0000 To: Thorsten Kampe , zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: zlogout not finishing when errors In-reply-to: "Thorsten Kampe"'s message of "Tue, 23 Mar 2004 19:49:17 +0100." Date: Tue, 23 Mar 2004 19:16:13 +0000 Message-ID: <5233.1080069373@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 23 Mar 2004 19:18:45.0658 (UTC) FILETIME=[A956FFA0:01C4110B] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.2 required=6.0 tests=EXCUSE_16 autolearn=no version=2.63 X-Spam-Hits: 0.2 Thorsten Kampe wrote: > [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. I can't reproduce this (with 4.2.0). % cat ~/.zlogout cp nonexistent foo print This line has been executed. % zsh -l % exit cp: cannot stat `nonexistent': No such file or directory This line has been executed. Are you sure there isn't a `setopt errexit' lurking somewhere? pws ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************