Bug Report: File globbing in CMD shell
cygwin@sourceware.cygnus.com
cygwin@sourceware.cygnus.com
Wed Jun 30 22:10:00 GMT 1999
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
More information about the Cygwin
mailing list