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

Re: simple substitution?



On Wed, 12 Aug 2009 13:04:18 +0100
Stephane Chazelas <stephane_chazelas@xxxxxxxx> wrote:

> eval.
> 
> eval "echo \${${FO}${O}}"
> 
> or
> 
> eval "echo \${$FO$O}"
> 
> See also:
> 
> echo ${(P)${:-$FO$O}}
> 
> or
> 
> echo ${(e)${:-\${$FO$O}}}

Is eval a good idea?  Can it introduce backdoors into the script?



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