Ticket #32 (closed defect: fixed)
the template for batch files should have a quoted path, else CALL fails
| Reported by: | maphew | Owned by: | osgeo4w-dev@… |
|---|---|---|---|
| Priority: | major | Component: | Installer |
| Version: | Keywords: | ||
| Cc: |
Description
If there is a space in OSGEO4W_ROOT the call will fail. The fix is to quote %%f. Using current qgis.bat.tmpl as an example, the corrected template is:
@echo off
SET OSGEO4W_ROOT=@osgeo4w@
PATH %OSGEO4W%\bin;%PATH%
for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f"
start /B %OSGEO4W_ROOT%\bin\qgis.exe %*
Note: for some reason Windows is smart about quotes when setting PATH, so they are not needed there. Likewise the embedded quote within the FOR ... IN does not cause a problem.
Change History
Note: See
TracTickets for help on using
tickets.
