From: Earnie B. <ea...@us...> - 2005-08-01 16:25:57
|
On 4:29:36 am 2005-07-30 John Vandenberg <ja...@gm...> wrote: > Hi, > > I have run into a problem where I think msys (1.0.11(0.46/3/2)) is > accidentally munging the command line in a very strange way. > > On my system, 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[1] = aaaaaaaaa/xxxxxxxx/ > arg[2] = -D:/GNU/msys > > This occurs whenever one argument contains 2 slashes, 17 alphanums, > and a subsequent argument is a single slash. quoting doesn't help. > > Attached is a test case I used to determine what is contributing to > the problem, and the output on my system. > > Any idea what could be causing this, or suggestions on how I could > work around this? > Works for me! $ mingw32-echo.exe aaaaaaaaa/xxxxxxxxx/ - aaaaaaaaa/xxxxxxxxx/ - $ cat mingw32-echo.c #include <stdio.h> int main(int argc, char * argv[]) { int i; for(i = 1; i < argc; i++) { printf("%s", argv[i]); if(i < argc - 1) putchar(' '); } putchar('\n'); return 0; } $ uname -a MINGW32_NT-5.1 OH6000GBOYDE 1.0.11(0.46/3/2) 2005-03-29 16:28 i686 unknown |