From: Eric Hodel Date: 2007-01-26T03:44:59+09:00 Subject: Re: Problem using back-ticks + eval On Jan 25, 2007, at 10:40, Richard wrote: > I'm trying to demo how Ruby handles various argument formats. > > For example, I write the statement: > show %@`ruby DisplayArgs.rb Arg1 Arg2`@ > > and I get the output: > `ruby DisplayArgs.rb Arg1 Arg2` > => > Arg[1]: "Arg1" > Arg[2]: "Arg2" > > I'd like avoid having the back-ticks appear in the output. def show(command) puts command puts '=>' puts `#{command}` end -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net I LIT YOUR GEM ON FIRE!