# HG changeset patch # User Markus Mützel # Date 1612113025 -3600 # Node ID 27b4f385c45d7209f5639cc6d59e84461a973b18 # Parent 74d9b433846afc25460cc0f980a1e48474912741 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. diff -r 74d9b433846a -r 27b4f385c45d installer-files/cmdshell.bat --- 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