This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: [ -d ' ' ] && echo yes
- From: "Elfyn McBratney" <elfyn-cygwin at exposure dot org dot uk>
- To: "cygwin" <cygwin at cygwin dot com>,"Norton Allen" <allen at huarp dot harvard dot edu>
- Date: Mon, 3 Feb 2003 22:15:33 -0000
- Subject: Re: [ -d ' ' ] && echo yes
- References: <200302032126.QAA22715@bottesini.harvard.edu>
> 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/