Error when running 'bin/jruby' -
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:
Patches for this: