Fix backslash handling for paths supplied as parameters in run.cmd. Fixes issue #11
This commit is contained in:
Родитель
8d754236db
Коммит
b1498666aa
|
@ -1,5 +1,7 @@
|
|||
@echo off
|
||||
|
||||
SET CMDLINE=%*
|
||||
|
||||
SET ENV_DRIVE=%~d0%
|
||||
SET ENV_PATH=%~p0%
|
||||
SET ENV=%ENV_DRIVE%%ENV_PATH%
|
||||
|
@ -11,7 +13,8 @@ SET PYTHONUNBUFFERED=1
|
|||
SET HOME=%ENV%
|
||||
|
||||
IF %1!==! goto interactive
|
||||
%ENV%\\msys\\bin\\bash --login -c "%*"
|
||||
REM MSYS cannot handle backslashes. So we have to replace all of them with slashes
|
||||
%ENV%\\msys\\bin\\bash --login -c "%CMDLINE:\=/%"
|
||||
goto end
|
||||
|
||||
:interactive
|
||||
|
|
Загрузка…
Ссылка в новой задаче