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