Skip to content

Commit

Permalink
Merge pull request scala#15824 from rubin55/add-path-quoting-in-scripts
Browse files Browse the repository at this point in the history
Added quotes to Scala home paths in scala and scalac scripts
  • Loading branch information
WojciechMazur authored Aug 5, 2022
2 parents 5dee30b + 3905058 commit 44a2f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/bin/scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ done
# exec here would prevent onExit from being called, leaving terminal in unusable state
compilerJavaClasspathArgs
[ -z "${ConEmuPID-}" -o -n "${cygwin-}" ] && export MSYSTEM= PWD= # workaround for #12405
eval "\"$JAVACMD\"" "${java_args[@]}" "-Dscala.home=$PROG_HOME" "-classpath \"$jvm_cp_args\"" "dotty.tools.MainGenericRunner" "-classpath \"$jvm_cp_args\"" "${scala_args[@]}"
eval "\"$JAVACMD\"" "${java_args[@]}" "-Dscala.home=\"$PROG_HOME\"" "-classpath \"$jvm_cp_args\"" "dotty.tools.MainGenericRunner" "-classpath \"$jvm_cp_args\"" "${scala_args[@]}"
scala_exit_status=$?


Expand Down
2 changes: 1 addition & 1 deletion dist/bin/scalac
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ eval "\"$JAVACMD\"" \
"${java_args[@]}" \
"-classpath \"$jvm_cp_args\"" \
"-Dscala.usejavacp=true" \
"-Dscala.home=$PROG_HOME" \
"-Dscala.home=\"$PROG_HOME\"" \
"dotty.tools.MainGenericCompiler" \
"${scala_args[@]}"

Expand Down

0 comments on commit 44a2f72

Please sign in to comment.