This is the mail archive of the cygwin@sourceware.cygnus.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]

Replacement of * as argument with filenames


If I compile the simple program with gcc under linux:

int main(int narg, char **argv)
{
   int i;
   for (i=0; i<narg; i++) printf("%s\n",argv[i]);
   return 0;
}

and run:
     main *
I get a list of filenames in the present directory.
If I run:
   main "*"
I get *, as it should be.
If I compile this program under cygwin32 I always get the list of
filenames.
This is incompatible. How can I circumvent it?


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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