Escaped '?' characters and corrected double quotes on Windows.

The sh script was not modified, as it always required quotes anyway.
develop
Benjamin Amos 2018-10-28 19:22:25 +00:00
parent 75f641ccbe
commit 07d431f184
1 changed files with 8 additions and 3 deletions

View File

@ -61,10 +61,15 @@ if "x%~1" == "x" goto execute
@REM set CMD_LINE_ARGS=%*
:process_args
IF "%1"=="" GOTO end
echo "%1" | findstr /C:"\*" 1>nul && (
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% "%1"
SET ARG=%~1
echo "%ARG%" | findstr /C:"\*" 1>nul && (
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% "%ARG%"
) || (
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
echo "%ARG%" | findstr /C:"\?" 1>nul && (
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% "%ARG%"
) || (
SET CMD_LINE_ARGS=%CMD_LINE_ARGS% %ARG%
)
)
SHIFT
GOTO process_args