From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25066 invoked from network); 11 Apr 2001 01:17:47 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Apr 2001 01:17:47 -0000 Received: (qmail 3851 invoked by alias); 11 Apr 2001 01:17:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13946 Received: (qmail 3840 invoked from network); 11 Apr 2001 01:17:38 -0000 From: "Bart Schaefer" Message-Id: <1010411011709.ZM18962@candle.brasslantern.com> Date: Wed, 11 Apr 2001 01:17:09 +0000 In-Reply-To: <20010411000413.E2B8F139CD@pwstephenson.fsnet.co.uk> Comments: In reply to Peter Stephenson "Re: Baffling bug with ${(S)...} or ${...//p/r} and math context" (Apr 11, 1:04am) References: <20010411000413.E2B8F139CD@pwstephenson.fsnet.co.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk (Zsh hackers list) Subject: Re: Baffling bug with ${(S)...} or ${...//p/r} and math context MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 11, 1:04am, Peter Stephenson wrote: } Subject: Re: Baffling bug with ${(S)...} or ${...//p/r} and math context } } Hmm, it wouldn't be something to do with the fact that the length of the } output, even excluding %{...%}'s, varies with the status of the previous } command, by any chance? (Sound of hand smacking forehead) The prompt system internally knows that %U/%u %S/%s %B/%b don't take up any space, but they don't disappear from ${(%%)...} expansions. There's a conditional on exit status that includes a %S/%s pair. Now I just have to figure out what to do about it ... -- 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