On Mon, Dec 3, 2012 at 12:39 PM, Joel Pearson <[email protected]> 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/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
