From: SourceForge.net <no...@so...> - 2005-08-10 08:04:39
|
Bugs item #1255576, was opened at 2005-08-10 18:01 Message generated for change (Comment added) made by zeroj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1255576&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: msys Group: Known bugs Status: Open Resolution: None >Priority: 3 Submitted By: John Vandenberg (zeroj) Assigned to: Earnie Boyd (earnie) Summary: msys attempts PATH translation of semi-POSIX paths Initial Comment: The original problem raised by Charlie Savage on the mingw-users list was that msys mangles the following command: $ mingw_echo.exe --with-ldflags="-L/usr/local/lib -LD:/msys/1.0/local/lib" arg[1] = --with-ldflags=-Ld:\GNU\local\lib -LD;D:\GNU\msys\msys\1.0\local\lib The path 'D:/msys/1.0/local/lib' is interpreted as a Unix style PATH containing D and /msys/1.0/local/lib; this is converted into a DOS style PATH separated by a semi-colon, and the following translations also occur: D -> D /msys -> D:\GNU\msys Workaround details ================== the simplest workaround is to only use Unix paths, but there are a few more: 1. reversing the ordering works around the problem $ /bin/mingw_echo.exe --with-ldflags="-LD:\msys\1.0\local\lib -L/usr/local/lib" arg[1] = --with-ldflags=-LD:\msys\1.0\local\lib -L/usr/local/lib 2. using backslashes in the DOS path also works $ /bin/mingw_echo.exe --with-ldflags="-L/usr/local/lib -LD:\msys\1.0\local\lib" arg[1] = --with-ldflags=-L/usr/local/lib -LD:/msys/1.0/local/lib Cause ===== The problem appears to be triggered by a space in the argument. $ mingw_echo.exe "D:/" arg[1] = D:/ (works) zeroj@PIONEER ~ $ mingw_echo.exe " D:/" arg[1] = D;D:\GNU\msys (fails) ---------------------------------------------------------------------- >Comment By: John Vandenberg (zeroj) Date: 2005-08-10 18:04 Message: Logged In: YES user_id=108686 Reducing priority because many workarounds exist. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1255576&group_id=2435 |