Should be able to just use `#!ruby --disable-gems` as the shebang
Closed this issue · 3 comments
nogweii commented
For example:
#!ruby --disable-gems
puts "tada!"
Works as expected, and will search $PATH for ruby instead of hard-coding it.
nogweii commented
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
garybernhardt commented
Yeah... I'm not sure why your shell script worked, but that's not reliable in general. It sucks. :/
garybernhardt commented
(Err, I mean that it sucks that shebangs don't work that way. :)