Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
commit 8dc5944744c98a3c901d11e76632f10bbbcbfd91 1 parent 2d4a387
@sorbits sorbits authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  Support/RubyMate/run_script.rb
1  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/
Please sign in to comment.
Something went wrong with that request. Please try again.