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

Re: Count only visible characters?



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