This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin1.dll mangling command line args


On Mon, Jul 15, 2002 at 10:08:35AM -0400, Mark Blackburn wrote:
>Observe the following testcases
>
>test.c:
>int main(int argc, char** argv)
>{
>  int i;
>  for (i=0; i<argc; i++)
>    printf("%s\n",argv[i]);
>}
>
>D:\home\windows\desktop>gcc test.c -o test -mno-cygwin
>
>D:\home\windows\desktop>test \\mark\share "\\mark\share"
>test
>\\mark\share
>\\mark\share
>
>Everything is fine here.
>
>D:\home\windows\desktop>gcc test.c -o test
>
>D:\home\windows\desktop>test \\mark\share "\\mark\share"
>test
>\\mark\share
>\mark\share
>
>The second argument in the quotes loses a backslash

"Patches gratefully accepted" (tm)

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]