Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

bug with %<< prompt expansion



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