I have a problem where bash from MSYS incorrectly replaces occurrences of "/c" with "c:\":
$ cmd.exe /c echo foobar
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
Using process explorer, i can see that the command line for "cmd.exe" is the following:
c:\WINDOWS\system32\cmd.exe c:/ echo foobar
The expected result would be that "/c" is passed unchanged to cmd.exe
Another strange behaviour:
$ cmd.exe /c echo foobar/c
It is possible to work around the problem by using some complicated escape sequence:
$ cmd.exe "\/c" echo foobar
This problem is present with MSYS 1.0.10 and 1.0.11 snapshot
$ uname -a
MINGW32_NT-5.1 AB 1.0.11(0.46/3/2) 2009-01-29 00:39 i686 Msys
$ bash --version
GNU bash, version 3.1.0(1)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.
Log in to post a comment.