From mboxrd@z Thu Jan 1 00:00:00 1970 From: johnbent@lanl.gov (John Bent) Date: Wed, 30 Jan 2008 11:35:22 -0700 Subject: [sup-talk] missing run-mailcap In-Reply-To: <1201717294-sup-1892@south> References: <1201019996-sup-8960@tangerine.lanl.gov> <1201041081-sup-6034@tangerine.lanl.gov> <1201210323-sup-6116@tangerine.lanl.gov> <1201216741-sup-4105@south> <1201218489-sup-3542@tangerine.lanl.gov> <1201220092-sup-8263@south> <1201222453-sup-1190@spooky.local> <1201235901-sup-7426@tangerine.lanl.gov> <1201307667-sup-2659@tangerine.lanl.gov> <1201714011-sup-6178@south> <1201715536-sup-6254@tangerine.lanl.gov> <1201717294-sup-1892@south> Message-ID: <1201718069-sup-9900@tangerine.lanl.gov> 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