summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2013-07-23 15:14:00 +0200
committerAntoine Gourlay <antoine@gourlay.fr>2013-07-23 15:14:00 +0200
commit2473e6667c0ff82624ce449c46463a567f3c18ba (patch)
treed3f3b0867141be3a41b9ed9bbcfe6c43e1fc244d /src
parentfc4b464faeb43c3e2917b11a95c4f84481c443f7 (diff)
downloadscala-2473e6667c0ff82624ce449c46463a567f3c18ba.tar.gz
scala-2473e6667c0ff82624ce449c46463a567f3c18ba.tar.bz2
scala-2473e6667c0ff82624ce449c46463a567f3c18ba.zip
SI-7687 Handle spaces in %COMSPEC% path in scala.bat.
Double quoted %COMSPEC% to allow for spaces in the path to the default interpreter (cmd.exe or equivalent).
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/ant/templates/tool-windows.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl
index bd6cf561b9..a3a95ffd37 100644
--- a/src/compiler/scala/tools/ant/templates/tool-windows.tmpl
+++ b/src/compiler/scala/tools/ant/templates/tool-windows.tmpl
@@ -89,4 +89,4 @@ goto :eof
@@endlocal
REM exit code fix, see http://stackoverflow.com/questions/4632891/exiting-batch-with-exit-b-x-where-x-1-acts-as-if-command-completed-successfu
-@@%COMSPEC% /C exit %errorlevel% >nul
+@@"%COMSPEC%" /C exit %errorlevel% >nul