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: <020501c2cbd4$b77f3e30$696f86d9@webdev>
From: "Elfyn McBratney" <elfyn-cygwin@exposure.org.uk>
To: "cygwin" <cygwin@cygwin.com>, "Norton Allen" <allen@huarp.harvard.edu>
References: <200302032241.RAA19340@bottesini.harvard.edu>
Subject: Re: [ -d ' ' ] && echo yes
Date: Mon, 3 Feb 2003 22:36:35 -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

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

Sorry, it is my head then :/

It may just be a Cygwin geature, and by looking at the strace output

  293 1191913 [main] ls 2188 fhandler_base::fstat: here
   99 1192012 [main] ls 2188 fstat64: 0 = fstat (1, 0x241FCA8)
  298 1192310 [main] ls 2188 writev: writev (1, 0x241FD78, 1)
  480 1192790 [main] ls 2188 fhandler_base::write: binary write
total 0

It looks as if passing ' ' to ls -al makes it think that ' ' is the current
working directory. Never looked at the fhandler code so I'm probably way out
:::::-)


Regards,

Elfyn McBratney
elfyn@exposure.org.uk
www.exposure.org.uk



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

