From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: color codes to eval
Date: Wed, 10 Apr 2024 09:46:04 -0700 [thread overview]
Message-ID: <adab6ddb-1375-403f-991b-835581133fcc@eastlink.ca> (raw)
[-- 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 --]
next reply other threads:[~2024-04-10 16:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-10 16:46 Ray Andrews [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adab6ddb-1375-403f-991b-835581133fcc@eastlink.ca \
--to=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).