On 12/27/09 3:12 AM, in article loom.20091227T120658-978@post.gmane.org, "Piero D'Ancona" pierodancona@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.