bug with *one* extra space on shebang with jruby-1.2rc1
---------------------------------------------------------
Key: JRUBY-3467
URL: http://jira.codehaus.org/browse/JRUBY-3467
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.2
Environment: osx 10.5.6 - java version "1.5.0_16" - (powerbook 12 -
1.33GHz)
Reporter: Maurice Diamantini
Assignee: Thomas E Enebo
Fix For: JRuby 1.2
An amazing bug occurs with jruby-1.2rc1 (and not with jruby-1.1.6).
Let the first line of a script be the standard shebang;
#!/bin/env jruby
If this first line contains one **and only one** white space at the end,
then a java error occurs immediately:
Shared archive: sharing disabled for server vm
String.java:558:in `charAt': java.lang.StringIndexOutOfBoundsException: String
index out of range: 0
from RubyInstanceConfig.java:745:in `isInterpreterArgument'
from RubyInstanceConfig.java:707:in `processArguments'
from RubyInstanceConfig.java:516:in `processArguments'
from Main.java:197:in `run'
from Main.java:110:in `run'
from Main.java:94:in `main'
This error arises either if the script is called as an unix command
thanks to the shebang, or directly as an argument to the jruby
command.
--
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