public
Created

env ruby vs direct calling

  • Download Gist
console.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
∵ 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:~

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.