X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm List-Id: 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 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 Reply-To: cygwin AT cygwin DOT com Message-ID: <517075165.20151021205906@yandex.ru> To: Francis ANDRE , cygwin AT cygwin DOT 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 DOT 5050305 AT orange DOT 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 AT idefix pocozos ]$pwd > /cygdrive/Z/git/pocozos > [FrancisANDRE AT 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...