Excerpts from William Morgan's message of Wed Jan 30 11:26:03 -0700 2008:
> 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?
> 
=> true

> > 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?
> 
same problem.  It opens successfully, but sup thinks it doesn't and
displays it as text.  All I see in the log buffer is:
 hook: read 'mime-view' from /Users/johnbent/.sup/hooks/mime-view.rb

Ah.  But
system "open '#{filename}'"
false

works perfectly!  (not sure that's expected but I'm happy!)

Thanks,

John
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to