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
Did this email get published to the list?
On 26/03/2008, ollie saunders oliver.saunders@gmail.com wrote:
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-tp1631049... Sent from the textmate users mailing list archive at Nabble.com.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 26 Mar 2008, at 19:24, ollie saunders wrote:
[...] 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.
This is probably what you are looking for: http://macromates.com/textmate/manual/shell_commands#search_path