Originally reported by John Vandenberg on 4:29:36 am
Including a hyphen as a parameter to a mingw binary
will result in the msys root directory is being appended
to a hyphen, as its Win32 path. i.e.
$ /bin/mingw_echo.exe aaaaaaaaa/xxxxxxxx/ -
arg = aaaaaaaaa/xxxxxxxx/
arg = -D:/GNU/msys
... one more or less character in the first argument does
not generate the error. Only occurs in MSYS window,
and not in DOS window.
Demonstration code follows:
int main(int argc, char **argv)
for (i = 1; i < argc; i++) printf("arg[%d] = %s\n", i, argv[i]);
Earnie says he can reproduce it.