bin/jruby script has incompatible bourne shell syntax
-----------------------------------------------------

                 Key: JRUBY-6108
                 URL: https://jira.codehaus.org/browse/JRUBY-6108
             Project: JRuby
          Issue Type: Bug
            Reporter: Jordan Sissel
            Assignee: Thomas E Enebo


Error when running 'bin/jruby' -

{noformat}
bin/jruby: 55: function: not found
bin/jruby: 60: Syntax error: "}" unexpected
{noformat}

Cause:

The shebang line for bin/jruby says '#!/bin/sh'. On many systems, this will be 
a shell that supports the more modern function definition syntax for 
bourne-like shells, but on Ubuntu and maybe Debian, this shell is "dash" which 
is a very minimally-featured shell which fails on this syntax.

Simple example failing in /bin/sh:

{noformat}
% /bin/sh -c 'function foo { echo OK } &&  foo'  
/bin/sh: function: not found
{noformat}

Patches for this:

* (jruby-1_6 branch) https://github.com/jruby/jruby/pull/86
* (master branch ) https://github.com/jruby/jruby/pull/87



--
This message is automatically generated by JIRA.
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