From: jqb AT netcom DOT com (Jim Balter) Subject: Re: globbing feature in 17.1 when not under bash issue (bug) 22 Feb 1997 15:08:27 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <330F6034.67A9.cygnus.gnu-win32@netcom.com> References: <01BC20F1 DOT 2025DA10 AT sos> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (WinNT; I) Original-To: Sergey Okhapkin Original-CC: "gnu-win32 AT cygnus DOT com" , "'David Ellis'" Original-Sender: owner-gnu-win32 AT cygnus DOT com 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 -- - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".