Bug report #9751
MSYS shortcut doesn't handle path with spaces
|Affected QGIS version:||2.2.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18300|
In msys.bat, when starting the shell, should use syntax e.g. start "MSYS" "%WD%sh". Otherwise when launching, get an error like "Cannot find C:\\Program". the "MSYS" is also required, because otherwise the quoted string gets interpreted as a window title.
#1 Updated by Keith Jenkins about 6 years ago
This is an issue with the Windows installation of QGIS. The spaces-in-path-names problem has been debated in the MinGW project that maintains MSYS. See http://sourceforge.net/p/mingw/bugs/1109/?limit=10&page=2#3208
They advise not to put msys.bat in a folder where the path name contains spaces.
But since QGIS (and thus MSYS) installs into the "Program Files" folder (as do nearly all Windows programs), it would be good to provide a modified copy (fixed as Jessica suggests above) of msys.bat in the QGIS Windows installer.