From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9977 invoked from network); 14 Oct 2003 15:00:00 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Oct 2003 15:00:00 -0000 Received: (qmail 23622 invoked by alias); 14 Oct 2003 14:59:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19189 Received: (qmail 23593 invoked from network); 14 Oct 2003 14:59:50 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Oct 2003 14:59:50 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.3.58.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 14 Oct 2003 14:59:49 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h9EExmK22337 for zsh-workers@sunsite.dk; Tue, 14 Oct 2003 07:59:48 -0700 From: Bart Schaefer Message-Id: <1031014145947.ZM22336@candle.brasslantern.com> Date: Tue, 14 Oct 2003 14:59:47 +0000 In-Reply-To: <20031013023510.GA11368@dylex.dylex.net> Comments: In reply to Dylan Alex Simon "duplicate printexitvalue with mailcheck" (Oct 12, 7:35pm) References: <20031013023510.GA11368@dylex.dylex.net> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: duplicate printexitvalue with mailcheck MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 12, 7:35pm, Dylan Alex Simon wrote: } Subject: duplicate printexitvalue with mailcheck } } The printexitvalue option shows multiple exit values when MAILPATH/MAILCHECK } is set and new mail is found. I'm not able to reproduce this, but I suspect that it shows multiple exit values when the mail check contains a call to an external command: } MAILPATH='/home/dylan/mail?New mail in `basename $_`' ^^^^^^^^^^^^^ If you change that to MAILPATH='/home/dylan/mail?New mail in $_:t' what happens? (Might need ${_:t} if you're using some ksh emulation options.) If that doesn't change anything, you'll need to tell us more about your environment, such as whether you have a precmd and what it does, whether you have any TRAPxxx functions defined, etc.