Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Count only visible characters?
- X-seq: zsh-users 14991
- From: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Count only visible characters?
- Date: Fri, 9 Apr 2010 12:56:02 +0200
- In-reply-to: <D623EAB5-E787-4381-9DB8-42C6E3C3FD1D@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <loom.20100409T002951-342@xxxxxxxxxxxxxx> <201004091102.55291.joke@xxxxxxxxx> <87d3y90z07.fsf@xxxxxxxxxxxxxxxxxxxxxx> <D623EAB5-E787-4381-9DB8-42C6E3C3FD1D@xxxxxxxxxxx>
Am 09.04.2010 um 12:44 schrieb Sebastian Stark:
>
> 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
Sorry, I made a pasto. The two commands should be:
print "${(%)a::=%F{green}hello}"
and
print "${(%)a::=%F{green}hello"
respectively.
Sebastian
>
> 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