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 |
Message-ID: | <020501c2cbd4$b77f3e30$696f86d9@webdev> |
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> |
References: | <200302032241 DOT RAA19340 AT bottesini DOT harvard DOT edu> |
Subject: | Re: [ -d ' ' ] && echo yes |
Date: | Mon, 3 Feb 2003 22:36:35 -0000 |
MIME-Version: | 1.0 |
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 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |