New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UNIX bin scripts don't work for paths with spaces #4959
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4959?orig=1 |
Commit Message Bot (anonymous) said: Removed assumption that bash is in /bin. Removed --posix option to bash. I took the waste-half-a-day step of installing vmware fusion so I could :javap now sort of works on windows (not for repl-defined classes as yet) |
@adriaanm said: |
@adriaanm said: |
@lylek said (edited on Feb 19, 2015 7:19:29 AM UTC): Here's the reason we don't need |
The default scripts in the unix download do not quote classpaths with the result that the scripts will work when installed in a directory such as:
/Users/dan/scala
but fail for:
/All Users/dan/scala
This affects: fsc, scala, scalac, scaladoc and scalap.
The fix in each case is to quote ${CPSELECT}${TOOL_CLASSPATH} - for example:
"${JAVACMD:=java}"
$JAVA_OPTS
"${java_args[@]}"
${CPSELECT}${TOOL_CLASSPATH}
-Dscala.usejavacp=true
-Dscala.home="$SCALA_HOME"
-Denv.emacs="$EMACS"
$CYGWIN_JLINE_TERMINAL
scala.tools.nsc.Main "$@"
should be:
"${JAVACMD:=java}"
$JAVA_OPTS
"${java_args[@]}"
"${CPSELECT}${TOOL_CLASSPATH}"
-Dscala.usejavacp=true
-Dscala.home="$SCALA_HOME"
-Denv.emacs="$EMACS"
$CYGWIN_JLINE_TERMINAL
scala.tools.nsc.Main "$@"
The text was updated successfully, but these errors were encountered: