How can you distinguish between MSYS and MSYS2 and CYGWIN, e.g via a command or a predefined environment variable?
This distinction would be needed by tools like Scons to adapt generated command lines, e.g. by issuing double backslashed c:\\path\\to\\file
or backticked `cygpath -w /c/path/to/file`
.
Background: I would like to use MSYS2, because of its superior package management. Scons generates the /c/path/to/file
on MSYS2, but csc
(Microsoft's C# compiler) only allows Windows style paths.
csc
( error CS1504: Source file could not be opened), probably because MSYS2 is almost Cygwin. – Roland Puntaierchoco install git && choco install mingw
and copy thetools/mingw64
overgit/mingw64
and usegit-bash
. – Roland Puntaiermingw-get install ...
, but right now we don't have a git package to go with that. Also, if you specifically want mingw-w64 -- which is very definitely not MinGW -- then I don't think there are any mingw-get aware packages for that either. – Keith Marshall