Reformatted excerpts from John Bent's message of 2008-01-30:
> I wonder if the problem is that system isn't correctly understanding
> the return value from open?  

Try with irb:

  $ irb
  irb(main):001:0> system "ls"
  [...]
  => true
  irb(main):002:0> system "asdfasdfa"
  => false

What happens with open?

> hmmm, I would think 0 is the expected success value?  How could I reverse
> true and false?  I'm curious to try that but 
> ! $?.success? 

This one should work.

As a sanity check:
  system "open '#{filename}'"
  true

Should always count as a success. Is that true?

-- 
William <[EMAIL PROTECTED]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to