anchor.diff:    exit /b 1
   )
   if not defined MSYS2_NOSTART (
  -  start "%CONTITLE%" "%ComEmuCommand%" /Here /Icon "%WD%..\..\msys2.ico" /cmd "%WD%\%LOGINSHELL%" --login %SHELL_ARGS%
  -) else (
  -  "%ComEmuCommand%" /Here /Icon "%WD%..\..\msys2.ico" /cmd "%WD%\%LOGINSHELL%" --login %SHELL_ARGS%
  +  start "%CONTITLE%" "%ComEmuCommand%" /Here /Icon "%WD%..\..\msys2.ico" /cmd "%WD%\%LOGINSHELL%" --login !SHELL_ARGS!
  +) else (
  +  "%ComEmuCommand%" /Here /Icon "%WD%..\..\msys2.ico" /cmd "%WD%\%LOGINSHELL%" --login !SHELL_ARGS!
   )
   exit /b %ERRORLEVEL%
   
   :startsh
   set MSYSCON=
   if not defined MSYS2_NOSTART (
  -  start "%CONTITLE%" "%WD%\%LOGINSHELL%" --login %SHELL_ARGS%
  -) else (
  -  "%WD%\%LOGINSHELL%" --login %SHELL_ARGS%
  +  start "%CONTITLE%" "%WD%\%LOGINSHELL%" --login !SHELL_ARGS!
  +) else (
  +  "%WD%\%LOGINSHELL%" --login !SHELL_ARGS!
   )
   exit /b %ERRORLEVEL%
   
  
positive.code: set MSYSCON=mintty.exe
  :startmintty
  if not defined MSYS2_NOSTART (
    start "%CONTITLE%" "%WD%mintty" -i /msys2.ico -t "%CONTITLE%" "/usr/bin/%LOGINSHELL%" --login %SHELL_ARGS%
  ) else (
    "%WD%mintty" -i /msys2.ico -t "%CONTITLE%" "/usr/bin/%LOGINSHELL%" --login %SHELL_ARGS%
  )
  exit /b %ERRORLEVEL%
  
  
negative.code:   exit /b %ERRORLEVEL%
  )
  rem Shell types
  if "x%~1" == "x-msys" shift& set /a msys2_shiftCounter+=1& set MSYSTEM=MSYS& goto :checkparams
  if "x%~1" == "x-msys2" shift& set /a msys2_shiftCounter+=1& set MSYSTEM=MSYS& goto :checkparams
  if "x%~1" == "x-mingw32" shift& set /a msys2_shiftCounter+=1& set MSYSTEM=MINGW32& goto :checkparams
  if "x%~1" == "x-mingw64" shift& set /a msys2_shiftCounter+=1& set MSYSTEM=MINGW64& goto :checkparams
  if "x%~1" == "x-mingw" shift& set /a msys2_shiftCounter+=1& (if exist "%WD%..\..\mingw64" (set MSYSTEM=MINGW64) else (set MSYSTEM=MINGW32))& goto :checkparams
  rem Console types
  if "x%~1" == "x-mintty" shift& set /a msys2_shiftCounter+=1& set MSYSCON=mintty.exe& goto :checkparams
  if "x%~1" == "x-conemu" shift& set /a msys2_shiftCounter+=1& set MSYSCON=conemu& goto :checkparams
  if "x%~1" == "x-defterm" shift& set /a msys2_shiftCounter+=1& set MSYSCON=defterm& goto :checkparams
  rem Other parameters
  if "x%~1" == "x-full-path" shift& set /a msys2_shiftCounter+=1& set MSYS2_PATH_TYPE=inherit& goto :checkparams
  if "x%~1" == "x-use-full-path" shift& set /a msys2_shiftCounter+=1& set MSYS2_PATH_TYPE=inherit& goto :checkparams
  if "x%~1" == "x-here" shift& set /a msys2_shiftCounter+=1& set CHERE_INVOKING=enabled_from_arguments& goto :checkparams
  if "x%~1" == "x-where" (
    if "x%~2" == "x" (
      echo Working directory is not specified for -where parameter. 1>&2
  