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

Re: Why does colors() not use %{ %}?



"Richard Hartmann" <richih.mailinglist@xxxxxxxxx> writes:

> Hi all,
> 
> after a somewhat embarassing email to -users, I realized colors() does
> not properly escape color codes in its variables. What is the reason
> for this behaviour?

Because %{ %} is only recognized in prompt expansions.
And colors is meant to be used for more than just in the prompt.
 
Phil.



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