Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <008701c2cbd5$e8d12b50$78d96f83@pomello>
From: "Max Bowsher" <maxb@ukf.net>
To: "Norton Allen" <allen@huarp.harvard.edu>,
   "Elfyn McBratney" <elfyn-cygwin@exposure.org.uk>
Cc: <cygwin@cygwin.com>, <allen@huarp.harvard.edu>
References: <200302032241.RAA19340@bottesini.harvard.edu>
Subject: Re: [ -d ' ' ] && echo yes
Date: Mon, 3 Feb 2003 22:45:11 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Norton Allen wrote:
> Elfyn McBratney wrote:
>>
>>> Are you saying it's a feature? If so, a feature of cygwin or
>>> of Windows? Under the Windows Command Prompt, cd " " does not
>>> complain, and leaves you in the current directory as you
>>> describe, but dir " " gives an error. This is certainly
>>> not how it works under other OSes.
>>
>>
>> I'm pretty sure it's a feature of SUSv3... Or one of the other POSIXy
>> standards.
>>
>> However I've been working for hours so my brain is fried and may be
>> spewing out random recollections '-)
>
>   FWIW, I've just tested on Linux (of some flavor) and OpenBSD,
>   and neither thinks ' ' is a directory.
>
>   In any event, I'd like to figure out whether it's a bug or
>   a feature under Cygwin so I can move forward.

It's a bug/feature in Windows. Trying to manipulate such a directory in an
ordinary cmd shell or in explorer produces spurious error messages and/or
silent failiures.

I.e. it falls into the same category as 'aux' and 'foo...' - file names
which Windows simply won't do.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

