[MacPorts] #48955: clojure @1.6.0 Unable to open the clj interpreter when inside a path with spaces
#48955: clojure @1.6.0 Unable to open the clj interpreter when inside a path with spaces -------------------------------------+-------------------------------- Reporter: riccardo.dimeo42@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: clj clojure path spaces | Port: clojure -------------------------------------+-------------------------------- The clj script behaves incorrectly when executed within a path that contains one or more spaces: {{{ $ pwd /tmp/a directory with spaces/another_dir $ clj Error: Could not find or load main class directory $ echo $? 1 }}} The problem is in the clj file itself (a script) which doesn't quote correctly the variables $cp and $cljclass By replacing the block: {{{ if [ -z "$1" ]; then exec java -classpath $cp $cljclass else exec java -classpath $cp $cljclass $* fi }}} with {{{ if [ -z "$1" ]; then exec java -classpath "$cp" "$cljclass" else exec java -classpath "$cp" "$cljclass" $* fi }}} the clj file works as expected: {{{ $ clj Clojure 1.6.0 user=> }}} -- Ticket URL: <https://trac.macports.org/ticket/48955> MacPorts <https://www.macports.org/> Ports system for OS X
#48955: clojure @1.6.0 Unable to open the clj interpreter when inside a path with spaces ---------------------------------+-------------------------------- Reporter: riccardo.dimeo42@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: clojure | ---------------------------------+-------------------------------- Changes (by mf2k@…): * keywords: clj clojure path spaces => -- Ticket URL: <https://trac.macports.org/ticket/48955#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts