syntax error in jruby unix startup
----------------------------------

                 Key: JRUBY-5318
                 URL: http://jira.codehaus.org/browse/JRUBY-5318
             Project: JRuby
          Issue Type: Bug
          Components: Launcher
    Affects Versions: JRuby 1.5.6
         Environment: Solaris
            Reporter: Chris Evans
            Assignee: Thomas E Enebo


I created a soft link to jruby in my home directory.  When running "jruby -v", 
I got the following error: 
expr: syntax error
Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main

I tracked it down to line 32 of bin/jruby, and compared it to the same file in 
version 1.3.  Looks like this:

    if expr "$link" : '/' > /dev/null; then

Should be:
    if expr "$link" : '^/' > /dev/null; then


Making the change works for me.  This only seems to affect it when I softlink 
jruby - giving it the full path does not show this error.

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