From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3607 invoked from network); 3 Jul 2001 17:48:40 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Jul 2001 17:48:40 -0000 Received: (qmail 17065 invoked by alias); 3 Jul 2001 17:47:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15244 Received: (qmail 17052 invoked from network); 3 Jul 2001 17:47:40 -0000 From: "Bart Schaefer" Message-Id: <1010703174634.ZM120@candle.brasslantern.com> Date: Tue, 3 Jul 2001 17:46:34 +0000 In-Reply-To: Comments: In reply to Peter Stephenson "Re: PATCH: Re: Is PRINT_EXIT_VALUE supposed to work?" (Jul 3, 6:13pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: Re: Is PRINT_EXIT_VALUE supposed to work? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 3, 6:13pm, Peter Stephenson wrote: } Subject: Re: PATCH: Re: Is PRINT_EXIT_VALUE supposed to work? } } > The simplest thing seems to be the patch below. } } I've been a long time getting around to looking at this, but does this } really work? } } zsh -c 'setopt printexitvalue; fn() { false;}; fn' It works interactively: schaefer<501> setopt printexitvalue; fn() { false;}; fn zsh: correct 'fn' to 'fg' [nyae]? n zsh: correct 'fn' to 'fg' [nyae]? n zsh: exit 1 I don't know offhand why it doesn't work with `zsh -c', and I don't have time to look at it just now ... -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net