[TxMt] Re: strange ui,rb error

Matt Neuburg matt at tidbits.com
Sun Dec 27 18:18:05 UTC 2009


On 12/27/09 3:12 AM, in article loom.20091227T120658-978 at post.gmane.org,
"Piero D'Ancona" <pierodancona at gmail.com>
wrote:

> Inside a TextMate window I get (lines split by me)
> 
> echo $PATH
> /Applications/TextMate.app/Contents/SharedSupport
> /Support/bin/CocoaDialog.app/Contents/MacOS
> :/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin
> :/usr/X11/bin:/Developer/Tools
> :/Applications/TextMate.app/Contents/SharedSupport/Support/bin

But at first you said this problem involves Ruby, yes? So what you get in a
shell script asking about $PATH is irrelevant. What you want to know is what
the path is in Ruby, which you can only find out from a Ruby script:

p ENV['PATH']

In general, p ENV will show you all the environmental variables available to
you in Ruby.

m.

-- 
matt neuburg, phd = matt at tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings






More information about the textmate mailing list