[TxMt] Ruby versions differ from shell and she-bang

Ollie Saunders oliver.saunders at gmail.com
Thu Mar 27 02:02:18 UTC 2008


Did this email get published to the list?

On 26/03/2008, ollie saunders <oliver.saunders at 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-tp16310494p16310494.html
>  Sent from the textmate users mailing list archive at Nabble.com.
>
>
>  ______________________________________________________________________
>  For new threads USE THIS: textmate at lists.macromates.com
>  (threading gets destroyed and the universe will collapse if you don't)
>  http://lists.macromates.com/mailman/listinfo/textmate
>


-- 
Ollie
http://olliesaunders.net/



More information about the textmate mailing list