From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Wed, 30 Jan 2008 10:26:03 -0800 Subject: [sup-talk] missing run-mailcap In-Reply-To: <1201715536-sup-6254@tangerine.lanl.gov> 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> Message-ID: <1201717294-sup-1892@south> 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