[TxMt] Ruby versions differ from shell and she-bang
ollie saunders
oliver.saunders at gmail.com
Wed Mar 26 18:24:55 UTC 2008
A snippet with this content:
`/usr/bin/env ruby -v`
Tells me that it is using /opt/local/bin/ruby (1.8.6)
Yet a command with this content:
#!/usr/bin/evn ruby
puts RUBY_VERSION
Tells me that it is using /usr/bin/ruby (1.8.2)
And yet if I use the she-bang outside of textmate, the correct 1.8.6 version
is used:
$ echo '#!/usr/bin/env ruby' > ruby_test
$ echo 'puts RUBY_VERSION' >> ruby_test
$ chmod +x ruby_test
$ ./ruby_test
1.8.6
$
Any anyone tell me how to fix this? I wish to use 1.8.6 for everything. I've
read that environment.plist might be part of the solution but I can't find
such a file. If I need to create a new one, I don't know what to put in it.
Many thanks
--
View this message in context: http://www.nabble.com/Ruby-versions-differ-from-shell-and-she-bang-tp16310494p16310494.html
Sent from the textmate users mailing list archive at Nabble.com.
More information about the textmate
mailing list