zsh-users
 help / color / mirror / code / Atom feed
* color codes to eval
@ 2024-04-10 16:46 Ray Andrews
  2024-04-10 18:39 ` Lawrence Velázquez
  0 siblings, 1 reply; 7+ messages in thread
From: Ray Andrews @ 2024-04-10 16:46 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]


var="${red}howdy${nrm}"    # '$(red}' is just a color code, no problem 
there.
print -l $var
eval "print -l $var"

... shows:

howdy
(eval):1: bad pattern: ^[[31

... Is there a way to feed color codes to eval?  Seems to me I remember 
that there's some ${(?) var} ... some flag in there that does it.

[-- Attachment #2: Type: text/html, Size: 626 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-04-11  0:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-10 16:46 color codes to eval Ray Andrews
2024-04-10 18:39 ` Lawrence Velázquez
2024-04-10 19:05   ` Andreas Kähäri
2024-04-10 19:17     ` Ray Andrews
2024-04-10 19:12   ` Ray Andrews
2024-04-11  0:01     ` Lawrence Velázquez
2024-04-11  0:15       ` Ray Andrews

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).