zsh-workers
 help / color / mirror / code / Atom feed
* bug with %<< prompt expansion
@ 2014-09-26 23:27 Joel Elkins
  2014-09-27  4:39 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Elkins @ 2014-09-26 23:27 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-28 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-26 23:27 bug with %<< prompt expansion Joel Elkins
2014-09-27  4:39 ` Bart Schaefer
2014-09-28 13:40   ` Joel Elkins

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).