| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| To: | cygwin AT cygwin DOT com |
| From: | "Tony Richardson" <richardson AT evansville DOT edu> |
| Subject: | Re: Wildcards in the path name parameter |
| Date: | Thu, 26 May 2005 08:32:33 -0500 |
| Lines: | 53 |
| Message-ID: | <d74iu0$79p$1@sea.gmane.org> |
| References: | <8625BCF5F531B64492482DCD29A89440AD3BC4 AT efsemaexm01 DOT emea DOT pfizer DOT com> |
| X-RFC2646: | Format=Flowed; Original |
| X-IsSubscribed: | yes |
"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 AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of Corinna Vinschen
> Sent: 26 May 2005 11:42
> To: cygwin AT cygwin DOT 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 AT cygwin DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |