This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Bug Report: File globbing in CMD shell
- To: Colm Cox <ccox@elandtech.com>
- Subject: Re: Bug Report: File globbing in CMD shell
- From: cygwin@sourceware.cygnus.com
- Date: Thu, 10 Jun 1999 15:02:07 -0400
- Cc: cygwin@sourceware.cygnus.com
- References: <040901beb370$1a83b1e0$05387dc2@ccox.vti.ie>
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 cygwin-unsubscribe@sourceware.cygnus.com