[Rubygems-developers] Adjusting Shebang in gem files

Florian Reitmeir florian at reitmeir.org
Tue Oct 17 07:53:34 EDT 2006


why not simple hardcode the name of the binary, and for windows use different


ruby1.8 could be a wrapper script which uses "env" the empty the enviroment
(or set some enviroment) and chooses the right version of ruby.

On Mit, 20 Sep 2006, Jim Freeze wrote:

> I am working on a patch to rubygems that allows the user
> to specify a shebang that is valid for a heterogeneous installation
> of gems (multi OS env). Basically, this means that the path to ruby is
> not specified explicitly in the shebang, but is set to:
>   #!/usr/bin/env ruby
> Typically this will be used in an environment that is running
> BSD, Linux, HP, Solaris and other unices. (Not sure how
> windows would respond.)
> My question is how do you want to have this option
> activated? Do I make this the default? Do I add a
> flag to the install option? If so, what?
> Your input is greatly appreciated.

Florian Reitmeir

More information about the Rubygems-developers mailing list