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@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.
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