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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=rCM 8Ur6H0h7wgrUCIQxMnov2MvkpbiYpBfs7zDlCrCxqTnPTX0WFNFFnRpUGbRxaKS3 gW+2i7TN2La7Le3jI6fqhH7QLmqpw4GIFwZDrRPUyeBCzlDOQ4AwXUm5ffxKa1vh dQObYRsjUsJBEKgGoxsKrSUZabpHEC3hn7NyO1ZI= 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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=2/y2aD4qH D0zYi28aXFMMz1jDoc=; b=tzLUnsqrMlGhfmerVrLZ3QULeNtoHDw6r2/b3fMax Z6uWLPvaOHHncpzTEgIOAZoFXg7qPqmdlOew7DX8oII2Ogr24y2qyD6M77tcKOjp OR1FB7783LlSJpNLCVfhUuP3NtmRozEw2uI6jmEyqytuRLSEDzOsHV3bOQf5orGx AI= 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.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: smtp.smtpout.orange.fr X-ME-Helo: [192.168.1.2] X-ME-Auth: ZnJhbmNpcy5hbmRyZS5rYW1wYmVsbEB3YW5hZG9vLmZy X-ME-Date: Wed, 21 Oct 2015 18:50:28 +0200 X-ME-IP: 90.18.144.31 To: cygwin AT cygwin DOT com From: Francis ANDRE Subject: CYGWIN_NT-6.1-WOW 2.2.1(0.289/5/3) inconsistency between pwd and readdir Message-ID: <5627C24E.5050305@orange.fr> Date: Wed, 21 Oct 2015 18:50:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Hi 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. FA -- 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