This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: filename expansion
- To: "Daniel P.C. da Silva" <si10647 at ci dot uminho dot pt>
- Subject: Re: filename expansion
- From: "$Bill Luebkert" <dbe at wgn dot net>
- Date: Mon, 11 Aug 1997 20:10:42 -0700
- CC: gnu-win32 mailing list <gnu-win32 at cygnus dot com>
- Organization: DBE Collectibles
- References: <311E5922.9F864639@ci.uminho.pt>
- Reply-To: dbe at wgn dot net
Daniel P.C. da Silva wrote:
>
> I don't know how to pass a pattern (like find . -name "*.pl") without
> doing filename expansion. Under UNIX, I would use \* , "*" or '*' to
> protect the pattern from the shell. None of this methods work with
> gnu-win32 commands running from a command prompt (not bash).
> Is there another way of doing this?
There is a bug (IMHO) in the argument passing of non-cygwin shells.
Cygwin assumes that the shell has no globbing ability and globs
the cmdline. Furthermore, it ignores ' and ", so you can't escape
it. I think I may have found a kludge around it though.
Try:
xargs find . -name
*.pl -print
^Z
or
xargs find . -name
*.pl
-print
^Z
--
,-/- __ _ _ $Bill Luebkert
(_/ / ) // // DBE Collectibles
/ ) /--< o // // http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_ Email: dbe@wgn.net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".