Subject: Re: Bug Report: File globbing in CMD shell
From: [email-masked]
To: Colm Cox <[email-masked]>
Cc: [email-masked]
Date: Thu, 10 Jun 1999 15:02:07 -0400

On Thu, Jun 10, 1999 at 07:36:06PM +0100, Colm Cox wrote:
><snip>
>>Cygwin is a UNIX emulation product, so backslashes quote the following
>>character as they do under UNIX.
><snip>
>
>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 [email-masked]