Opened 12 years ago

Closed 12 years ago

#36036 closed defect (fixed)

running jruby fails with "expr: syntax error"

Reported by: humem (humem) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: jruby

Description

I have got the same error explained at http://jira.codehaus.org/browse/JRUBY-5318. Soft link to jruby seems to cause the problem. I attach a patch for bin/jruby, but I am afraid there are other files to be patched and even files in jruby-devel port.

Attachments (1)

patch-jruby.diff (388 bytes) - added by humem (humem) 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by humem (humem)

Attachment: patch-jruby.diff added

comment:1 Changed 12 years ago by gui-dos (Guido Soranzio)

In Mountain Lion, the expr command provided by Apple is based on the FreeBSD version and not on the old NetBSD one.

ML's expr doesn't interpret correctly the single backslash. I found that another effective workaround consists in escaping the single slash from:

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

into

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

The launcher script of jython suffers from the same problem.

comment:2 Changed 12 years ago by ci42

Resolution: fixed
Status: newclosed

Fixed in r97665.

Note: See TracTickets for help on using tickets.