Sam Steingold wrote:
> args='"4 4" '"'5 5'"
What you're seeing is the side-effect of how mingw-compiled programs
handle wildcards.
mingw-compiled programs automatically link in support for wildcard
expansion of arguments passed in via the Windows GetCommandLine(). So
you'll often see extra quote
On Sun, Jul 20, 2003 at 08:20:47PM -0400, Sam Steingold wrote:
gdb does not make a distinction between arguments cygwin and non-cygwin
programs. It just passes the arguments to CreateProcess.
http://cygwin.com/problems.html
Please use the resources at cygwin.com rather than sending personal email.
#include
int main (int argc, char *argv[]) {
printf(" * argc=%d\n",argc);
while (argc--) printf("[%s]\n",*argv++);
return 0;
}
#!/bin/sh
args='"4 4" '"'5 5'"
echo $args
./argtest-cygwin.exe ${args}
./argtest-mingw.exe ${args}
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-sim
3 matches
Mail list logo