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)
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)
Note: See
TracTickets for help on using
tickets.
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:
into
The launcher script of jython suffers from the same problem.