rvm install jruby-head rewrite's the current rakes hash-bang invocation to be: 
#!/usr/bin/env jruby
---------------------------------------------------------------------------------------------------

                 Key: JRUBY-5791
                 URL: http://jira.codehaus.org/browse/JRUBY-5791
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.2
         Environment: Mac OS X 10.6.7
            Reporter: Stephen Bannasch
            Assignee: Thomas E Enebo


Installing jruby-head with rvm re-writes the hash-bang shell invocation lines 
in some of the current Ruby's binstubs.

I'm using rvm installed 1.8.7

In the shell I install jruby-head with rvm

The invocation for the 1.8.7 rake binstub has been re-written from 

{code}
$ head -n1 /Users/stephen/.rvm/gems/ruby-1.8.7-p334/bin/rake
#!/Users/stephen/.rvm/rubies/ruby-1.8.7-p334/bin/ruby
{code}

which is correct to:

{code}
$ head -n1 /Users/stephen/.rvm/gems/ruby-1.8.7-p334/bin/rake
#!/usr/bin/env jruby"
{code}

So now running rake when using the rvm install of ruby 1.8.7 will try it under 
jruby instead of 1.8.7.

I think the gem binstub re-writing happens in jruby's ant-dist task -- I've 
added the rvm --trace install jruby-head AND .rvm/log/jruby-head/ant.dist.log 
to this gist:  https://gist.github.com/968778

I was watching the rake binstub and the re-writing happened during the ant dist 
task.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to