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

Re: simple substitution?



On Thu, 27 Aug 2009 19:55:37 +0100
Stephane Chazelas <stephane_chazelas@xxxxxxxx> wrote:

> Yes, that's usually what eval does when passed uncontrolled
> data. You'd get the same problem with (e).
> 
> You need to make sure that $FO$O resolves to a valid variable
> name.
> 
> if $FO$O were 'x}; rm -rf ${HOME' for instance, there'd be
> damage.
> 
> However note that the eval solutions are standard POSIX sh
> solutions, so you don't make your script zsh specific when using
> them.

Thanks, this is good stuff to know.



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