www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=0.2 required=5.0 tests=AWL,BAYES_00 |
X-Spam-Check-By: | sourceware.org |
X-TPG-Junk-Checked: | Yes |
X-TPG-Junk-Status: | Message not scanned because user authenticated using SMTP AUTH |
X-TPG-Abuse: | host=123-243-74-63.tpgi.com.au; ip=123.243.74.63; date=Thu, 17 Sep 2009 01:45:11 +1000; auth=a/dd58RmThMRQbJLhdmDwr/fcSovfa0vOzWc399V3Kc= |
Message-ID: | <4AB10803.6080606@shaddybaddah.name> |
Date: | Thu, 17 Sep 2009 01:45:07 +1000 |
From: | Shaddy Baddah <helium AT shaddybaddah DOT name> |
User-Agent: | Thunderbird 2.0.0.22 (Windows/20090605) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [1.7] recursive /cygdrive problem |
References: | <4AB1031D DOT 1050802 AT shaddybaddah DOT name> |
In-Reply-To: | <4AB1031D.1050802@shaddybaddah.name> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
Hi again, Shaddy Baddah wrote: > The following is an example for 1.7: > > Shaddy AT x-vista ~ > $ cd /cygdrive/c/software/cygwin/ > > Shaddy AT x-vista /cygdrive/c/software/cygwin > $ ls ./cygdrive > c d e It has occurred to me that this wasn't the optimal example, as it does not eliminate a problem with the cd command. Take two is more revealing: Shaddy AT x-vista ~ $ ls /cygdrive/c/software/cygwin/cygdrive Shaddy AT x-vista ~ $ ie. no problem without the cd command. To eliminate bash builtin cd being a problem (not that it really would/should), here is some python: Shaddy AT x-vista ~ $ python Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.chdir('/cygdrive/c/software/cygwin') >>> os.listdir('./cygdrive') ['c', 'd', 'e'] >>> So what gives with the chdir implementation? Oh, and I originally ran into the problem trying to run du against the subdirs, not find. However the problem presents with find as well of course. Regards, Shaddy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |