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: <01f301c2cbd1$c5c969f0$696f86d9@webdev>
From: "Elfyn McBratney" <elfyn-cygwin@exposure.org.uk>
To: "cygwin" <cygwin@cygwin.com>, "Norton Allen" <allen@huarp.harvard.edu>
References: <200302032126.QAA22715@bottesini.harvard.edu>
Subject: Re: [ -d ' ' ] && echo yes
Date: Mon, 3 Feb 2003 22:15:33 -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

> Inasmuch as such a directory does not exist, this should
> not give any output:
>
>   [ -d ' ' ] && echo yes
>
> I suspect this is not a feature of bash, but more deeply
> buried, since
>
>   ls -ld ' '
>
> believes ' ' is a directory and

In a way it is. ' ' or '           ' no matter how many spaces is a loopback
to the current directory AFAIK. If you try to cd to ' ' or '    ' you will
see the pwd is /path/directory/you/are/in/.


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/

