garybernhardt/selecta

Should be able to just use `#!ruby --disable-gems` as the shebang

Closed this issue · 3 comments

For example:

#!ruby --disable-gems

puts "tada!"

Works as expected, and will search $PATH for ruby instead of hard-coding it.

Actually that this works at all is a feature of bash/zsh itself I think.+

+ Read this and came to the conclusion: http://unix.stackexchange.com/questions/11907/shebang-and-path

Yeah... I'm not sure why your shell script worked, but that's not reliable in general. It sucks. :/

(Err, I mean that it sucks that shebangs don't work that way. :)