anchor.diff:      exit /b 2
     )
     set CHERE_INVOKING=enabled_from_arguments
  -)& shift& shift& set /a shiftCounter+=2& goto :checkparams
  -if "x%~1" == "x-no-start" shift& set /a shiftCounter+=1& set MSYS2_NOSTART=yes& goto :checkparams
  +
  +  rem Ensure parentheses in argument do not interfere with FOR IN loop below.
  +  set msys2_arg="%~2"
  +  call :substituteparens msys2_arg
  +  call :removequotes msys2_arg
  +
  +  rem Increment msys2_shiftCounter by number of words in argument (as cmd.exe saw it).
  +  rem (Note that this form of FOR IN loop uses same delimiters as parameters.)
  +  for %%a in (!msys2_arg!) do set /a msys2_shiftCounter+=1
  +)& shift& shift& set /a msys2_shiftCounter+=1& goto :checkparams
  +if "x%~1" == "x-no-start" shift& set /a msys2_shiftCounter+=1& set MSYS2_NOSTART=yes& goto :checkparams
   if "x%~1" == "x-shell" (
     if "x%~2" == "x" (
       echo Shell not specified for -shell parameter. 1>&2
       exit /b 2
     )
     set LOGINSHELL="%~2"
  -)& shift& shift& set /a shiftCounter+=2& goto :checkparams
  +
  +  set msys2_arg="%~2"
  +  call :substituteparens msys2_arg
  +  call :removequotes msys2_arg
  +  for %%a in (!msys2_arg!) do set /a msys2_shiftCounter+=1
  +)& shift& shift& set /a msys2_shiftCounter+=1& goto :checkparams
   
   rem Collect remaining command line arguments to be passed to shell
  -for /f "tokens=%shiftCounter%,*" %%i in ("%*") do set SHELL_ARGS=%%j
  +if %msys2_shiftCounter% equ 0 set SHELL_ARGS=%* & goto cleanvars
  +set msys2_full_cmd=%*
  +for /f "tokens=%msys2_shiftCounter%,* delims=,;=	 " %%i in ("!msys2_full_cmd!") do set SHELL_ARGS=%%j
  +
  +:cleanvars
  +set msys2_arg=
  +set msys2_shiftCounter=
  +set msys2_full_cmd=
   
   rem Setup proper title
   if "%MSYSTEM%" == "MINGW32" (
  
positive.code: @echo off
  setlocal
  
  set "WD=%__CD__%"
  if NOT EXIST "%WD%msys-2.0.dll" set "WD=%~dp0usr\bin\"
  set "LOGINSHELL=bash"
  set /a shiftCounter=0
  
  rem To activate windows native symlinks uncomment next line
  rem set MSYS=winsymlinks:nativestrict
  
negative.code: echo following parameters are passed as login shell command parameters.
  echo.
  exit /b 0
  
  :removequotes
  FOR /F "delims=" %%A IN ('echo %%%1%%') DO set %1=%%~A
  GOTO :eof
  
  :substituteparens
  SETLOCAL
  FOR /F "delims=" %%A IN ('echo %%%1%%') DO (
      set value=%%A
      set value=!value:^(=x!
      set value=!value:^)=x!
  )
  ENDLOCAL & set %1=%value%
  GOTO :eof
  