According to its wiki page, MSYS "is intended to supplement MinGW and the deficiencies of the cmd shell." While this is mostly true and appreciated, there is one specific detail in which the MSYS shell fails for me: I cannot execute batch files from it. The most prominent example that bugs me is that I cannot evoke an MSYS build environment via "/c/mingw/msys/1.0/msys.bat MSYS" from a standard MinGW shell - but my concern is not limited to this example.
Do you think it is somehow possible (and reasonable) to extend MSYS to make it able to execute batch files? I am not thinking about directly parsing, but about detecting them and then executing them via e.g. "cmd.exe /C example.bat" - imagine something similar to Linux's binfmt mechanism. Furthermore, batch files (i.e. .bat and .cmd extensions) should appear in bash's tab completion and the output of which(1) alongside normal .exe files.
I am however not sure about the availability of variables that are set in such a batch file. Are there any other obvious deficiencies that I am missing here?
Log in to post a comment.