X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=bvbJhYrft6EfASlv
	pbgdRTie8lzqxNUaIe3cw+S2JPzzpNUUKONcgp0/G3GLf6nA15WBGWwc5oh8mWzu
	zJE9fBVwcFV/g+4u16FE1dPnqucUGTwr2kxaHUM7P30pVQclSBSJm7Q6djYS5v70
	GYI/JXS2maaockXDS/6mj+4E6X4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=E4WeUDqeuhPxLweviJSovX
	zXj0E=; b=fEL0BE9Kch18G+H3MwAebZb+SUBopHb1ElKKt+7y8A9Pg0p17VTfxd
	UNSnPoqB3MJ0aW07vW/xLlKPljLWV0tBXh4sXrH79rdA8PCc4iNDzeSS/xP1P8jU
	lE7cJiRc1R02W7mqvcTB+8oeaOvj7GjssoSVOBl7gO8G40+hBN7ko=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: Yes, score=5.5 required=5.0 tests=AWL,BAYES_99,BAYES_999,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Wed, 21 Oct 2015 20:59:06 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <517075165.20151021205906@yandex.ru>
To: Francis ANDRE <francis.andre.kampbell@orange.fr>, cygwin@cygwin.com
Subject: Re: CYGWIN_NT-6.1-WOW 2.2.1(0.289/5/3) inconsistency between pwd and readdir
In-Reply-To: <5627C24E.5050305@orange.fr>
References: <5627C24E.5050305@orange.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t9LI5LM4005277

Greetings, Francis ANDRE!

> the drive letter returned by pwd is a upper case letter while the drive
> letter returned by readdir is a lower case letter.

> [FrancisANDRE@idefix pocozos ]$pwd
> /cygdrive/Z/git/pocozos
> [FrancisANDRE@idefix pocozos ]$ll /cygdrive
> total 92
> drwxrwxrwx+ 1 NT SERVICE+TrustedInstaller NT SERVICE+TrustedInstaller 0 
> 20 oct.  18:52 c
> drwxrwxrwt+ 1 Administrateurs Système                     0 20 oct.  18:52 d
> drwxrwxrwx+ 1 Administrateurs Unknown+Group               0 20 oct.  18:52 g
> drwx---rwx+ 1 Administrateurs Administrateurs             0 21 oct.  11:45 z

> Thus, when traversing the /cygdrive tree using a pattern matching code, 
> the /cygdrive/Z directory does not exist while the /cygdrive/z exists.

> Either pwd should return a lower case letter, either readdir should 
> return an uppercase drive letter to get consistent results.

$ cd /cygdrive/c/dev/; pwd
/cygdrive/c/dev
$ cd /cygdrive/C/dev/; pwd
/cygdrive/C/dev
$

Notice the pattern.


-- 
With best regards,
Andrey Repin
Wednesday, October 21, 2015 20:57:10

Sorry for my terrible english...

