Re: case sensitivity bug?
On 10/19/2016 7:27 AM, Corinna Vinschen wrote: On Sep 20 20:33, Ken Brown wrote: I've set up my Cygwin installation to be case sensitive, following the instructions at https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive But it doesn't seem to be working as I expect. For example: $ mkdir a $ mkdir A $ ls -al [aA] a: total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ A: total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:19 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ $ mv a A mv: cannot move 'a' to a subdirectory of itself, 'A/a' Why does mv think that A and a are the same directory? Here's another example, where mv should simply do a rename, but it doesn't: $ rmdir A $ mv a A $ ls -al a total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:30 ../ $ ls -al A ls: cannot access 'A': No such file or directory cygcheck output is attached. Looks like a *very* old misbehaviour. I applied a patch to Cygwin to fix this. I'll create a snapshot later today, please test. That fixes it. Thanks. Ken -- 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
Re: case sensitivity bug?
On Sep 20 20:33, Ken Brown wrote: > I've set up my Cygwin installation to be case sensitive, following the > instructions at > > https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive > > But it doesn't seem to be working as I expect. For example: > > $ mkdir a > > $ mkdir A > > $ ls -al [aA] > a: > total 100 > drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ > drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ > > A: > total 100 > drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:19 ./ > drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ > > $ mv a A > mv: cannot move 'a' to a subdirectory of itself, 'A/a' > > Why does mv think that A and a are the same directory? > > Here's another example, where mv should simply do a rename, but it doesn't: > > $ rmdir A > > $ mv a A > > $ ls -al a > total 100 > drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ > drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:30 ../ > > $ ls -al A > ls: cannot access 'A': No such file or directory > > cygcheck output is attached. Looks like a *very* old misbehaviour. I applied a patch to Cygwin to fix this. I'll create a snapshot later today, please test. Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat signature.asc Description: PGP signature
Re: case sensitivity bug?
On 2016-09-21 10:59, Ken Brown wrote: On 9/21/2016 12:32 PM, Brian Inglis wrote: On 2016-09-20 18:33, Ken Brown wrote: I've set up my Cygwin installation to be case sensitive, following the instructions at https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive But it doesn't seem to be working as I expect. For example: $ mkdir a $ mkdir A $ ls -al [aA] a: total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ A: total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:19 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ $ mv a A mv: cannot move 'a' to a subdirectory of itself, 'A/a' Why does mv think that A and a are the same directory? Here's another example, where mv should simply do a rename, but it doesn't: $ rmdir A $ mv a A $ ls -al a total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:30 ../ $ ls -al A ls: cannot access 'A': No such file or directory cygcheck output is attached. Windows Win32 and WoW are case insensitive but case preserving where the underlying filesystem supports case sensitivity; POSIX subsystem is case sensitive: https://support.microsoft.com/en-us/kb/100625 (N.B. NT 3.1!) Nitty gritties: http://www.nicklowe.org/2012/02/understanding-case-sensitivity-in-windows-obcaseinsensitive-file_case_sensitive_search/ Thanks for the pointers, but I'm not sure how that's related to my bug report. Did you read the section of the Cygwin User Guide that I cited? If Cygwin uses underlying NT... OS calls for all operations, it should be case-sensitive, but any underlying Win... subsystem calls will be case-insensitive, and YMMV, just as if you used a native Windows command. Maybe stat the file and strace that or the failing ls command above to see what's happening. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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
Re: case sensitivity bug?
On 9/21/2016 12:32 PM, Brian Inglis wrote: On 2016-09-20 18:33, Ken Brown wrote: I've set up my Cygwin installation to be case sensitive, following the instructions at https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive But it doesn't seem to be working as I expect. For example: $ mkdir a $ mkdir A $ ls -al [aA] a: total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ A: total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:19 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ $ mv a A mv: cannot move 'a' to a subdirectory of itself, 'A/a' Why does mv think that A and a are the same directory? Here's another example, where mv should simply do a rename, but it doesn't: $ rmdir A $ mv a A $ ls -al a total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:30 ../ $ ls -al A ls: cannot access 'A': No such file or directory cygcheck output is attached. Windows Win32 and WoW are case insensitive but case preserving where the underlying filesystem supports case sensitivity; POSIX subsystem is case sensitive: https://support.microsoft.com/en-us/kb/100625 (N.B. NT 3.1!) Nitty gritties: http://www.nicklowe.org/2012/02/understanding-case-sensitivity-in-windows-obcaseinsensitive-file_case_sensitive_search/ Thanks for the pointers, but I'm not sure how that's related to my bug report. Did you read the section of the Cygwin User Guide that I cited? Ken -- 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
Re: case sensitivity bug?
On 2016-09-20 18:33, Ken Brown wrote: I've set up my Cygwin installation to be case sensitive, following the instructions at https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive But it doesn't seem to be working as I expect. For example: $ mkdir a $ mkdir A $ ls -al [aA] a: total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ A: total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:19 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:19 ../ $ mv a A mv: cannot move 'a' to a subdirectory of itself, 'A/a' Why does mv think that A and a are the same directory? Here's another example, where mv should simply do a rename, but it doesn't: $ rmdir A $ mv a A $ ls -al a total 100 drwxr-xr-x+ 1 kbrown None 0 2016-09-20 20:18 ./ drwxrwxrwt+ 1 kbrown-admin None 0 2016-09-20 20:30 ../ $ ls -al A ls: cannot access 'A': No such file or directory cygcheck output is attached. Windows Win32 and WoW are case insensitive but case preserving where the underlying filesystem supports case sensitivity; POSIX subsystem is case sensitive: https://support.microsoft.com/en-us/kb/100625 (N.B. NT 3.1!) Nitty gritties: http://www.nicklowe.org/2012/02/understanding-case-sensitivity-in-windows-obcaseinsensitive-file_case_sensitive_search/ -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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
Re: case sensitivity bug?
Greetings, Ken Brown! > I've set up my Cygwin installation to be case sensitive, following the > instructions at > https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive That instruction is outdated. Modern OS have per-volume case sensitivity settings, and this is a default configuration IIRC. Get yourself a VM and configure one tome for case sensitivity, then install Cygwin there. -- With best regards, Andrey Repin Wednesday, September 21, 2016 11:36:27 Sorry for my terrible english... -- 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