Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
env ruby vs direct calling
∵ cat ./testshebang.rb
#!/usr/bin/ruby
puts "#{RUBY_VERSION}"
01:34:21 me@Davids-MacBook-Pro:~
∵ ./testshebang.rb
1.8.7
01:34:28 me@Davids-MacBook-Pro:~
∵ vim ./testshebang.rb
01:34:46 me@Davids-MacBook-Pro:~
∵ cat ./testshebang.rb
#!/usr/bin/env ruby
puts "#{RUBY_VERSION}"
01:34:55 me@Davids-MacBook-Pro:~
∵ ./testshebang.rb
1.9.3
01:35:00 me@Davids-MacBook-Pro:~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.