On Fri, Oct 01, 2004 at 10:09:44PM +0900, trans.  (T. Onoma) wrote:
> Not to be a killjoy, but can't you just type:
> 
>   `ls foo bar`
> 
> Hmm.. actually you need a puts in front so
> 
>   def `(*args)
>     puts super
>   end

Not necessary if you're running in irb, as it prints the expression return
value:

irb(main):004:0> `ls TODO`
=> "TODO\n"
irb(main):005:0>

But then you have more work when interpolating parameters:

  a = "foo bar"
  `touch "#{a}"`

(and that doesn't work for filenames which include double quotes)

Brian.