changeset 5649:27b4f385c45d

cmdshell.bat: Use double-quotes to allow for spaces in path (bug #59923). * installer-files/cmdshell.bat: Use double-quotes to allow for spaces in the path where Octave is installed.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 31 Jan 2021 18:10:25 +0100
parents 74d9b433846a
children 6805ab42c8aa
files installer-files/cmdshell.bat
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/installer-files/cmdshell.bat	Sun Jan 31 16:44:31 2021 +0100
+++ b/installer-files/cmdshell.bat	Sun Jan 31 18:10:25 2021 +0100
@@ -16,14 +16,14 @@
 set MSYSTEM=MSYS
 
 Rem if no msys-1.0, must be msys2
-if NOT EXIST %OCTAVE_HOME%bin\msys-1.0.dll set MSYSDIR=%OCTAVE_HOME%usr
+if NOT EXIST "%OCTAVE_HOME%bin\msys-1.0.dll" set MSYSDIR=%OCTAVE_HOME%usr
 
 Rem 32 or 64 bit
-if EXIST %OCTAVE_HOME%mingw32\bin\octave-cli.exe set MSYSTEM=MINGW32
-if EXIST %OCTAVE_HOME%mingw64\bin\octave-cli.exe set MSYSTEM=MINGW64
+if EXIST "%OCTAVE_HOME%mingw32\bin\octave-cli.exe" set MSYSTEM=MINGW32
+if EXIST "%OCTAVE_HOME%mingw64\bin\octave-cli.exe" set MSYSTEM=MINGW64
 
-if EXIST %OCTAVE_HOME%mingw32\bin\octave-cli.exe set OCTAVE_HOME=%OCTAVE_HOME%mingw32\
-if EXIST %OCTAVE_HOME%mingw64\bin\octave-cli.exe set OCTAVE_HOME=%OCTAVE_HOME%mingw64\
+if EXIST "%OCTAVE_HOME%mingw32\bin\octave-cli.exe" set OCTAVE_HOME=%OCTAVE_HOME%mingw32\
+if EXIST "%OCTAVE_HOME%mingw64\bin\octave-cli.exe" set OCTAVE_HOME=%OCTAVE_HOME%mingw64\
 
 Rem   Set up PATH. Make sure the octave bin dir
 Rem   comes first.
@@ -35,5 +35,5 @@
 Rem tell msys2 to use the paths we set here which matches what octave would do
 set MSYS2_PATH_TYPE=inherit
 
-%MSYSDIR%\bin\bash.exe --login -i
+"%MSYSDIR%\bin\bash.exe" --login -i