Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <01f301c2cbd1$c5c969f0$696f86d9@webdev> From: "Elfyn McBratney" To: "cygwin" , "Norton Allen" References: <200302032126 DOT QAA22715 AT bottesini DOT harvard DOT 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 AT exposure DOT org DOT 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/