Web lists-archives.org

[Mingw-users] Strange bash expansion




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




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users