delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/10/14:45:25

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
From: "Henry Gessau" <gessau AT cisco DOT com>
To: <cygwin AT sourceware DOT cygnus DOT com>
Cc: <cgf AT cygnus DOT com>
Subject: RE: Bug Report: File globbing in CMD shell
Date: Thu, 10 Jun 1999 14:43:02 -0400
Message-ID: <000001beb371$11fc8230$84c82ca1@gessau-pc.cisco.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <19990610141756.A25372@cygnus.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

Hmmm. That doesn't quite make sense either. I tried the same thing on
Solaris:

$ ls tmpdir/*
tmpdir/tmp.txt
$ ls tmpdir\*
tmpdir*: No such file or directory
$ ls tmpdir\\*
ls: No match.
$ ls tmpdir\tmp.txt
tmpdirtmp.txt: No such file or directory


Note the difference between the fourth example above and the fourth example
below. It looks like Cygwin is trying to accommodate the DOS backslash path
separator when invoked from CMD.EXE, but it is not very logical when the
argument contains an asterisk.

My opinion is that backslash should not quote the next character when using
CMD.EXE (at least there should be an option for specifying this).

I would like to have a look at the file globbing code - any hints as to
where I might find it? (I have not delved into the Cygwin sources before.)

--
Henry


> -----Original Message-----
> From: cygwin AT sourceware DOT cygnus DOT com [mailto:cygwin AT sourceware DOT cygnus DOT com]
> Sent: Thursday, June 10, 1999 2:18 PM
> To: Henry Gessau
> Cc: cygwin AT sourceware DOT cygnus DOT com
> Subject: Re: Bug Report: File globbing in CMD shell
>
>
> Cygwin is a UNIX emulation product, so backslashes quote the following
> character as they do under UNIX.
>
> cgf
>
> On Thu, Jun 10, 1999 at 11:10:18AM -0400, Henry Gessau wrote:
> >D:\Henry>ls tmpdir/*
> >tmpdir/tmp.txt
> >
> >D:\Henry>ls tmpdir\*
> >ls: tmpdir*: No such file or directory
> >
> >D:\Henry>ls tmpdir\\*
> >ls: tmpdir\*: No such file or directory
> >
> >D:\Henry>ls tmpdir\tmp.txt
> >tmpdir\tmp.txt
> >
> >------------------------------------------------------------------
> >
> >Cygwin beta 20.1 (usertools.exe)
> >WinNT Ver 4.0 build 1381 Service Pack 4
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019