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

Re: Evaluating parameters in general-purpose widgets



On Thu, Jan 18, 2018 at 4:21 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Is it safe for zsh-syntax-highlighting to evaluate parameter expansions
> in the input?

Depending on how costly you're willing to make this, you could always
use "${$(print -nr -- "$foobar"X)#X}" to assure the parameter is
evaluated where it can't have any effects on the current shell.



Messages sorted by: Reverse Date, Date, Thread, Author