JRuby masterplan for F19 - RFC

Vít Ondruch vondruch at redhat.com
Fri Dec 14 09:25:48 UTC 2012


Dne 13.12.2012 15:56, Michal Fojtik napsal(a):
> On 12/04, Vít Ondruch wrote:
>>
>> I should also point out that you can try to use different rubies such as:
>>
>> $ ruby _mri_ -v
>> $ ruby _jruby_ -v
> How about:
>
> $ RUBY_PLATFORM=mri ruby -v
> $ RUBY_PLATFORM=jruby ruby -v

I would consider it as alternative. Who likes so much typing? And if you 
are alarmist, you should be afraid of possible env variable collision :)

>
> In this case you're not introducing cross-platform incompatibility for
> shebangs ;-)

I am not afraid of shebangs incompatibility. I hope that if there will  
be JRuby specific code, nobody will come with #!/usr/bin/ruby _jruby_ 
shebang, but will go with !#/usr/bin/jruby. Not sure why s/he would use 
such shebang anyway.


Vít



More information about the ruby-sig mailing list