Hi, why not simple hardcode the name of the binary, and for windows use different extensions..
#!/usr/bin/ruby1.8 #!/usr/bin/ruby1.7 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 _______________________________________________ Rubygems-developers mailing list [email protected] http://rubyforge.org/mailman/listinfo/rubygems-developers
