Empty command in backquotes leads to JRuby crash (on Windows)
-------------------------------------------------------------

                 Key: JRUBY-2251
                 URL: http://jira.codehaus.org/browse/JRUBY-2251
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
         Environment: Latest JRuby 1.1RC2, Windows
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.1


jruby -e "``" =>

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String 
index out of range: 0
        at java.lang.String.charAt(String.java:687)
        at 
org.jruby.util.ShellLauncher.shouldRunInProcess(ShellLauncher.java:398)
        at org.jruby.util.ShellLauncher.run(ShellLauncher.java:240)
        at org.jruby.util.ShellLauncher.runAndWait(ShellLauncher.java:220)
        at org.jruby.RubyKernel.backquote(RubyKernel.java:1032)
        at org.jruby.RubyKernelInvoker$backquote_method_1_0.call(Unknown Source)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:147)
        at 
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:307)
        at __dash_e__.__file__(-e:1)
        at __dash_e__.load(-e)
        at org.jruby.Ruby.runScript(Ruby.java:497)
        at org.jruby.Ruby.runNormally(Ruby.java:417)
        at org.jruby.Ruby.runFromMain(Ruby.java:297)
        at org.jruby.Main.run(Main.java:141)
        at org.jruby.Main.run(Main.java:88)
        at org.jruby.Main.main(Main.java:79)

-- 
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