Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Thu, 10 Jun 1999 15:02:07 -0400 From: cygwin AT sourceware DOT cygnus DOT com To: Colm Cox Cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Bug Report: File globbing in CMD shell Message-ID: <19990610150207.A25538@cygnus.com> References: <040901beb370$1a83b1e0$05387dc2 AT ccox DOT vti DOT ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <040901beb370$1a83b1e0$05387dc2@ccox.vti.ie>; from Colm Cox on Thu, Jun 10, 1999 at 07:36:06PM +0100 On Thu, Jun 10, 1999 at 07:36:06PM +0100, Colm Cox wrote: > >>Cygwin is a UNIX emulation product, so backslashes quote the following >>character as they do under UNIX. > > >This is true, but I believe the point Henry was making is that the globbing >finds Win style paths. It seems to me that he may have made a typo in his >mail. If under windows you try: > >C:\TEST> ls tmpdir\\tmp.txt >tmpdir\tmp.txt > >(.... ls reports tmp.txt exists even though the path specifier is incorrect) > >Under unix: >[sundev:/home/ccox ] ls tmpdir\\tmp.txt >ls: tmpdir\tmp.txt : No such file or directory > >(.... ls fails to find tmp.txt since the path specifier is incorrect) If you created a file called 'tmpdir\tmp.txt' on Solaris then this would work similarly to cygwin. Under Win32 tmpdir\\tmp.txt does exist. The \\ is translated to \ so this becomse tmpdir\tmp.txt. The filename is not globbed unless unquoted wildcard characters are seen. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com