Hello,

When I run the program below from my home directory in a PowerShell
Console (Windows 8-1) I've to use an extra backslash character as
shown below or the star is expanded. Which happens only when the
program has been compiled in Cygwin.

Is this a bug or a known feature?

Ev. Drikos

----------------------------------------------
PS C:\Users\suser> .\args.exe '\*'

*
argc=1
PS C:\Users\suser>
----------------------------------------------

#include <stdio.h>
int main(int argc, char *argv[]){
int i;
for (i=1; i < argc; i++) {
  printf("\n%s",argv[i]);
}//for
 printf("\nargc=%d\n",argc-1);
return 0;
}

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to