delorie.com/archives/browse.cgi | search |
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: | <200302032126.QAA22715@bottesini.harvard.edu> |
Subject: | [ -d ' ' ] && echo yes |
To: | cygwin AT cygwin DOT com |
Date: | Mon, 3 Feb 2003 16:26:49 -0500 (est) |
MIME-Version: | 1.0 |
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 ls -la ' ' will give you 'total 0' (no . or .. entries). It also believes any name consisting of all spaces is a directory. On the plus side, you can't create a real directory or file named ' ', because it thinks one already exists. -Norton Allen -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |