On Mon, Dec 3, 2012 at 12:39 PM, Joel Pearson <lists / ruby-forum.com> wrote:
> If you do trust your user enough to let them execute system commands (I
> assume this is your goal with the backticks), I think the way to input a
> variable is this:
>
> system("#{op}")

Superfluous - this is sufficient:
system op

If you do not know whether op references a String you can do

system op.to_s

Kind regards

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/