This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: CYGWIN_NT-6.1-WOW 2.2.1(0.289/5/3) inconsistency between pwd and readdir
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Francis ANDRE <francis dot andre dot kampbell at orange dot fr>, cygwin at cygwin dot com
- Date: Wed, 21 Oct 2015 20:59:06 +0300
- Subject: Re: CYGWIN_NT-6.1-WOW 2.2.1(0.289/5/3) inconsistency between pwd and readdir
- Authentication-results: sourceware.org; auth=none
- References: <5627C24E dot 5050305 at orange dot fr>
- Reply-to: cygwin at cygwin dot com
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...