From: Michael K. <mic...@gm...> - 2008-01-08 16:33:04
|
Hi, bash/mingw translates unix paths to windows paths in arguments containing a forward slash. This happens both with double-quotes and ANSI-C quoting. I do not see this behaviour under cygwin/bash 3.2.33. Is this a bug or am I mising something? test.c: #include <stdio.h> int main (int argc, char* argv[]) { fprintf(stdout, "test: %s\n", argv[1]); exit(0); } This one is ok... $ ./test $'(..\src) (foo::bar)' test: (..\src) (foo::bar) ...but $ ./test $'(../src) (foo::bar)' test: (..\src) (foo;bar) =========^=========^==== $ ./test "(../src) (foo::bar)" test: (..\src) (foo;bar) =========^=========^==== $ msysinfo MSYS 1.0.11(0.46/3/2) 2007-12-05 00:35 i686 unknown; targ=MINGW32 GNU bash, version 3.1.0(1)-release (i686-pc-msys); ENV=.profile Regards Michael |