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

Re: Count only visible characters?



Hi,

I was playing around with colors because of this post and noticed something strange along the way:

% echo $ZSH_VERSION
4.3.10
% print "${(%)a::=3D%F{green}hello}"
hello}
% print "${(%)a::=3D%F{green}hello"
hello

Why does the first print statement print the closing brace? How can the second print statement not produce an error?


Sebastian



Messages sorted by: Reverse Date, Date, Thread, Author