Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why does colors() not use %{ %}?
- X-seq: zsh-workers 25306
- From: Philippe Troin <phil@xxxxxxxx>
- To: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- Subject: Re: Why does colors() not use %{ %}?
- Date: 18 Jul 2008 17:39:50 -0700
- Cc: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- In-reply-to: <2d460de70807181723q4124849bl96066bd32890bfaa@xxxxxxxxxxxxxx>
- Mail-copies-to: nobody
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70807181723q4124849bl96066bd32890bfaa@xxxxxxxxxxxxxx>
- Sender: phil@xxxxxxxx
"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