#26701: sbt @0.7.4 gives a "[error] Could not parse command: (1,1): Expected identifier" ---------------------------------------------+------------------------------ Reporter: alessandro_mecca@… | Owner: me@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: sbt ---------------------------------------------+------------------------------ Comment(by toby.matejovsky@…): I had the same problem on OS X 10.6.4 GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0) The 0.7.4 jar file from MacPorts is the exact same one as from the Google Code page (sha1: 2b7cfadf05b3b26285bb2038145479741268d334). The problem is something with the $QUOTED_ARGS in the sbt script. If you remove that part and substitute "$@" (with quotes) for $QUOTED_ARGS (as recommended in the SBT project page), the sbt script works. Patch: {{{ #!diff 20,26d19 < # Capture any arguments < QUOTED_ARGS="" < while [ "$1" != "" ] ; do < QUOTED_ARGS="$QUOTED_ARGS \"$1\"" < shift < done < 33c26 < exec java $JAVA_OPTS -jar "$LAUNCHJAR" $QUOTED_ARGS ---
exec java $JAVA_OPTS -jar "$LAUNCHJAR" "$@" }}}
-- Ticket URL: <https://trac.macports.org/ticket/26701#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS