anchor.diff:  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!
  +  start "%CONTITLE%" "%WD%mintty" -i "/%CONICON%" -t "%CONTITLE%" "/usr/bin/%LOGINSHELL%" --login !SHELL_ARGS!
  +) else (
  +  "%WD%mintty" -i "/%CONICON%" -t "%CONTITLE%" "/usr/bin/%LOGINSHELL%" --login !SHELL_ARGS!
   )
   exit /b %ERRORLEVEL%
   
  
positive.code: set msys2_shiftCounter=
  set msys2_full_cmd=
  
  rem Setup proper title
  if "%MSYSTEM%" == "MINGW32" (
    set "CONTITLE=MinGW x32"
  ) else if "%MSYSTEM%" == "MINGW64" (
    set "CONTITLE=MinGW x64"
  ) else (
    set "CONTITLE=MSYS2 MSYS"
  )
  
  if "x%MSYSCON%" == "xmintty.exe" goto startmintty
  
negative.code:   exit /b 1
  )
  if not defined MSYS2_NOSTART (
    start "%CONTITLE%" "%ComEmuCommand%" /Here /Icon "%WD%..\..\%CONICON%" /cmd "%WD%\%LOGINSHELL%" --login !SHELL_ARGS!
  ) else (
    "%ComEmuCommand%" /Here /Icon "%WD%..\..\%CONICON%" /cmd "%WD%\%LOGINSHELL%" --login !SHELL_ARGS!
  )
  exit /b %ERRORLEVEL%
  
  