This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: globbing feature in 17.1 when not under bash issue (bug)
- To: Sergey Okhapkin <sos at prospect dot com dot ru>
- Subject: Re: globbing feature in 17.1 when not under bash issue (bug)
- From: Jim Balter <jqb at netcom dot com>
- Date: Sat, 22 Feb 1997 13:08:04 -0800
- CC: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'David Ellis'" <dg_ellis at ccm dot jf dot intel dot com>
- Organization: JQB Enterprises
- References: <01BC20F1.2025DA10@sos>
Sergey Okhapkin wrote:
>
> David Ellis wrote:
> > that quoting of arguments was overlooked. Here is the test case
> >
> > find . -name '*.doc'
> >
> > Works great under bash but does a glob under cmd.exe and comes up
> > with an effective comand line like:
> > find . -name barf.doc two.doc more.doc
Not with single quotes it doesn't.
> In the last case globbing is performed by cmd.exe.
Huh? cmd.exe does not do globbing. Under DOS/Windows, globbing
is up to the individual commands to do.
David Ellis is right that cygwin doesn't handle quotes properly,
but he's wrong about the argument being expanded in single quotes.
Under cmd.exe:
ls *.doc -> a.doc b.doc c.doc
ls "*.doc" -> a.doc b.doc c.doc
BOGUS cygwin expands
ls '*.doc' -> ls '*.doc': no such file or directory
BOGUS cygwin fails to strip single quotes
--
<J Q B>
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".