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]

gdb passes different argv/argc to mingw & cygwin


#include <stdio.h>

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-simple
Problem reports:       http://cygwin.com/problems.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]