Fix backslash handling for paths supplied as parameters in run.cmd. Fixes issue #11

This commit is contained in:
Henrik Skupin 2012-03-28 19:57:51 +02:00
Родитель 8d754236db
Коммит b1498666aa
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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