From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114773 invoked by alias); 21 Sep 2016 16:32:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 114764 invoked by uid 89); 21 Sep 2016 16:32:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=UD:microsoft.com, drwxrwxrwt, drwxr-xr-x, rmdir X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Sep 2016 16:32:30 +0000 Received: from [192.168.1.100] ([174.0.238.184]) by shaw.ca with SMTP id mkRebpYQ2fI0amkRfb1dyD; Wed, 21 Sep 2016 10:32:28 -0600 X-Authority-Analysis: v=2.2 cv=JOx5iICb c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=yMhMjlubAAAA:8 a=dro03-7xAAAA:8 a=I87TOlzPyJKrzTp9PGwA:9 a=QEXdDO2ut3YA:10 a=zvuQ_vupYScA:10 a=sRI3_1zDfAgwuvI8zelB:22 a=BKKCjISod1eDJeS0ORpz:22 a=K5pYtjeccC0NJJm0mWbS:22 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: case sensitivity bug? References: <43ca1dd7-3042-88b1-dbb7-59b02f13d331@cornell.edu> To: cygwin@cygwin.com From: Brian Inglis Message-ID: <6aa79b30-fa27-c5b6-e597-d40b82eee313@SystematicSw.ab.ca> Date: Wed, 21 Sep 2016 16:59:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <43ca1dd7-3042-88b1-dbb7-59b02f13d331@cornell.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfOGmddQSYNefqsVXUZck+jDjCLaof0jG2OksnYN6yFRmxtDjFfmKvVvgCLnU/jDR3cGZJ6CSrUeKZHaXO+ixPABvmuuOBV2C0rJhjjT4pjLSxwrPUgaM BYrQHchTkq6qlpwYdNIliORzn5oWeW8MtLP4+1G7+iTQgW/WTdgFH71sP6sVb0lS67HXwMIABg89hg== X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00269.txt.bz2 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