> From: Gavin Smith <[email protected]> > Date: Fri, 8 Apr 2022 13:56:31 +0100 > Cc: Tomas Kalibera <[email protected]>, [email protected] > > What happens if we don't set MSYSTEM at all?
Then you cannot distinguish between MSYS and MinGW, because 'uname' will return a value that doesn't tell which one is it. So you have a problem, because MinGW needs the semi-colon as path separator, whereas MSYS (being an emulation of Posix) needs the colon. That's why the $OSTYPE trick. > Methinks if MSYSTEM needs to be set correctly for uname to have the correct > output, then the user will already have this set in their environment. No, because 'uname' works when MSYSTEM is unset. It just reports a value that is not MSYS specific.
