Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Baffling bug with ${(S)...} or ${...//p/r} and math context
- X-seq: zsh-workers 13946
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Baffling bug with ${(S)...} or ${...//p/r} and math context
- Date: Wed, 11 Apr 2001 01:17:09 +0000
- In-reply-to: <20010411000413.E2B8F139CD@xxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010411000413.E2B8F139CD@xxxxxxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author