This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Wildcards in the path name parameter
"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.
The shell does wildcard expansion in Cygwin (and Unix) not the utility. Try
bash -c "cp /cygdrive/c/cygwin*.bat targetdir"
from the cmd.exe prompt instead (or from your application). (Why not use
Windows copy instead though?)
Tony Richardson
> -----Original Message-----
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Of Corinna Vinschen
> Sent: 26 May 2005 11:42
> To: cygwin@cygwin.com
> Subject: Re: Wildcards in the path name parameter
>
>
> On May 26 06:28, Coetzee, Evert wrote:
>> So my conclusion is that the * is not interpreted as a wildcard when it
>> is
>> part fo a pathname.
>
> Wrong. Don't mix Win32 and POSIX paths. Use /cygdrive/c/sourcedir/*.txt.
> No drive letters, no backslash.
>
>
> Corinna
>
> --
> Corinna Vinschen Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader mailto:cygwin@cygwin.com
> Red Hat, Inc.
>
> --
> 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/
>
>
>
>
--
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/