Browse files

Ignore shebang when TM_RUBY is set (⌘R)

Note though that ruby 1.8.7 itself will parse your shebang and re-run the script with the command it extracts, meaning that setting TM_RUBY to /usr/bin/ruby and using something else in the shebang, will not work.

Untested if newer versions of ruby show same behavior.
  • Loading branch information...
sorbits committed Feb 17, 2013
1 parent 2d4a387 commit 8dc5944744c98a3c901d11e76632f10bbbcbfd91
Showing with 1 addition and 0 deletions.
  1. +1 −0 Support/RubyMate/run_script.rb
@@ -90,6 +90,7 @@ def actual_path_name(path)
end cmd, :version_args => ["--version"],
:use_hashbang => !ENV.has_key?('TM_RUBY'),
:script_args => args ) do |line, type|
if is_test_script and type == :out
if line =~ /\A[.EF]+\Z/

0 comments on commit 8dc5944

Please sign in to comment.