MSYS2: How to disable automatic translation of pathname to drive letter?
问题 I'm facing an issue when testing a C program compiled with mingw in the MSYS2 shell: I wrote a command line parser that accepts options according to the windows convention (starting with / ). If I call my program like this to generate an output file: ./example.exe /o test What ends up in argv[1] is actually O:/ . It works fine when testing from a console window running CMD.EXE . This truly minimal program demonstrates the behavior: #include <stdio.h> int main(int argc, char **argv) { if (argc