Issue Type: Bug Bug
Assignee: Thomas E Enebo
Components: Launcher
Created: 17/Jul/12 9:05 AM
Description:

So this works:

$ jruby --1.9 -e 'p require("rib")'
true

but not this one:

$ jruby --1.9 -r rib -e 'p require("rib")'
LoadError: no such file to load – rib

Also, if I do this:

$ jruby --1.9 -r rib

It won't show up the LoadError until I input some strings.
We could treat `-r` as calling `require` before executing the
underlying program, so that it would be consistent.

Not sure if there's other consideration though.

The motivation behind this is I don't want to do this:

$ jruby --1.9 -S bundler exec rake test

but I want to do this:

$ jruby --1.9 -r bundler/setup -S rake test

to avoid launching multiple instances of Rubies.
I know that JRuby has some tricks to avoid this,
but the command to launch this test is for all rubies,
I don't want to have a special case for JRuby.

Hope this could be considered, thanks!

Environment: jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-01 26e08ba) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_33) [darwin-x86_64-java]
Project: JRuby
Priority: Minor Minor
Reporter: Lin Jen-Shin
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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