Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
bug with %<< prompt expansion
- X-seq: zsh-workers 33255
- From: Joel Elkins <joel@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: bug with %<< prompt expansion
- Date: Fri, 26 Sep 2014 18:27:35 -0500
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello. I think there may be a bug in the truncation operator %>> in the
prompt expansion code. It seems to count a sequence surrounded by %{ %} as
having width = 1, as shown below.
% echo $ZSH_VERSION
5.0.6
% print -P "%4>.>12345"
123.
% print -P "%4>.>1%{%}2345"
12.
In my opinion, these two commands should have the same output.
Thanks,
--
Joel D. Elkins
Messages sorted by:
Reverse Date,
Date,
Thread,
Author