Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
color codes to eval
- X-seq: zsh-users 29786
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: color codes to eval
- Date: Wed, 10 Apr 2024 09:46:04 -0700
- Archived-at: <https://zsh.org/users/29786>
- List-id: <zsh-users.zsh.org>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author