On Fri, Oct 01, 2004 at 08:17:14PM +0900, Kaspar Schiess wrote:
> Just in case anyone is really interested, the def is
> 
> ~ def method_missing( method, *args )
> ~   system method.to_s + " " + args.join(' ')
> ~ end

Or better:

  def method_missing(method, *args)
    system(method.to_s, *args)
  end

This work better when dealing with arguments which contain spaces (often a
bugbear of shell programming)

irb(main):004:0> touch "foo bar"
=> true
irb(main):005:0> ls "-l","foo bar"
-rw-r--r--  1 brian  brian  0 Oct  1 13:14 foo bar
=> true
irb(main):006:0> rm "foo bar"
=> true

Regards,

Brian.