> On 26/05/05, Coetzee, Evert wrote: > > But I'm running it from the cmd.exe command prompt. I'm > not in a shell. > > > > cp: cannot stat `/cygdrive/c/*.*': No such file or > directory > > > > That is the error I get now. > > Do you have "noglob" in your CYGWIN environment variable? > http://cygwin.com/problems.html > > Lev > Just to experiment with globbing, I created a small c program to list the command line arguments. I read where the cygwin dll will do globbing for a program run from a windoze command prompt, so I compiled with -mno-cygwin. Much to my surprise, globbing is still occurring, even from a windoze prompt. How can this happen?
#include <stdio.h> int main(int nArg, char **cArg) { int i; for ( i = 0 ; i < nArg; i++ ) { printf("%s\n",cArg[i]); } return 0; } $ make gcc -mno-cygwin -o parseline parseline.c $ cygcheck parseline.exe Found: C:\cygwin\home\rossboulet\Program\c\parseline\parseline.exe C:/cygwin/home/rossboulet/Program/c/parseline/parseline.exe C:\WINDOWS\system32\msvcrt.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\ntdll.dll $ ./parseline * C:\cygwin\home\rossboulet\Program\c\parseline\parseline.exe makefile parseline.c parseline.exe $ cmd Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\cygwin\home\rossboulet\Program\c\parseline>parseline * parseline makefile parseline.c parseline.exe -- 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/