delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/03/21:32:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: Norton Allen <allen AT huarp DOT harvard DOT edu>
Message-Id: <200302040243.VAA01787@bottesini.harvard.edu>
Subject: Re: [ -d ' ' ] && echo yes
To: maxb AT ukf DOT net (Max Bowsher)
Date: Mon, 3 Feb 2003 21:43:00 -0500 (est)
Cc: allen AT huarp DOT harvard DOT edu, elfyn-cygwin AT exposure DOT org DOT uk, cygwin AT cygwin DOT com
In-Reply-To: <008701c2cbd5$e8d12b50$78d96f83@pomello> from "Max Bowsher" at Feb 3, 3 10:45:11 pm
MIME-Version: 1.0

Max Bowsher wrote:
> 
> 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.

OK, thanks for the info. I was familiar with the oddities of aux, et. al,
but had not encountered the space thingy. -Norton


--
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/

- Raw text -


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