delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/15/16:32:06

From: r DOT hasse AT gsi DOT de (Dr. Rainer W. Hasse)
Subject: Replacement of * as argument with filenames
15 Oct 1998 16:32:06 -0700 :
Message-ID: <3625F360.24F6F8CF.cygnus.gnu-win32@gsi.de>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019