anchor.diff:  echo.
   echo Options:
   echo     -mingw32 ^| -mingw64 ^| -msys[2]   Set shell type
  -echo     -defterm ^| -mintty ^| -conemu ^| -consolez
  -echo                                      Set terminal type
  +echo     -defterm ^| -mintty ^| -conemu     Set terminal type
   echo     -here                            Use current directory as working
   echo                                      directory
   echo     -where DIRECTORY                 Use specified DIRECTORY as working
  
positive.code: if "x%~1" == "x-mingw64" shift& set MSYSTEM=MINGW64& goto :checkparams
  if "x%~1" == "x-mingw" shift& (if exist "%WD%..\..\mingw64" (set MSYSTEM=MINGW64) else (set MSYSTEM=MINGW32))& goto :checkparams
  rem Console types
  if "x%~1" == "x-consolez" shift& set MSYSCON=console.exe& goto :checkparams
  if "x%~1" == "x-mintty" shift& set MSYSCON=mintty.exe& goto :checkparams
  if "x%~1" == "x-conemu" shift& set MSYSCON=conemu& goto :checkparams
  if "x%~1" == "x-defterm" shift& set MSYSCON=defterm& goto :checkparams
  
negative.code: set MSYSCON=mintty.exe
  :startmintty
  start "%CONTITLE%" "%WD%mintty" -i /msys2.ico /usr/bin/bash --login %1 %2 %3 %4 %5 %6 %7 %8 %9
  exit /b %ERRORLEVEL%
  
  :startconemu
  