delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/22/04:15:48

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:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=jjmxF/AWUK11r1qG
6nNbtqC3cEcTbYBGAedkNLsBEfpqVMJpollpWipznZ6MNyTJk7FJed0Ec1W46OoT
KUyr3DVbsSgQn85F8ZV0tgpw15k6E4b5FZzSGDm3Ib0r9fAk6WPs/Uk7iLOVTFl7
MwM/DGWpulVln/ICi20O39VYQ6g=
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:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=jFWIuKlO2IK2dGcr/JvxrL
YtJ/8=; b=qPlNGf/2eO6coZ7PhpvT1YsNZNYx3ila6kaQq9K2fJDjvkDdxzhrCA
xl+axkQqL17rQLCj2TPApdmJx/xeM3usEmFLyKcGv2DwzuO9RafdsFalH/0jVgAa
VxAUDts7wI09Af3Zt7E8xq4L2AmSv1T6Q1WPd8TReGxyEi2JihLtA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: 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=H*r:ip*192.168.1.100, Hx-spam-relays-external:!192.168.1.100!, H*RU:!192.168.1.100!, Hx-spam-relays-external:64.59.134.9
X-HELO: smtp-out-no.shaw.ca
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=edFU0pGYbqUt8BZnmSsA:9 a=QEXdDO2ut3YA:10 a=zvuQ_vupYScA:10 a=sRI3_1zDfAgwuvI8zelB:22 a=BKKCjISod1eDJeS0ORpz:22 a=K5pYtjeccC0NJJm0mWbS:22
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: case sensitivity bug?
References: <43ca1dd7-3042-88b1-dbb7-59b02f13d331 AT cornell DOT edu> <6aa79b30-fa27-c5b6-e597-d40b82eee313 AT SystematicSw DOT ab DOT ca> <f1ee00f8-6d2b-a4dd-ca7e-6dca9c0c8552 AT cornell DOT edu>
To: cygwin AT cygwin DOT com
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <3809d007-a55f-c8f5-9724-0b0d0b5044bb@SystematicSw.ab.ca>
Date: Thu, 22 Sep 2016 02:15:03 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
MIME-Version: 1.0
In-Reply-To: <f1ee00f8-6d2b-a4dd-ca7e-6dca9c0c8552@cornell.edu>
X-CMAE-Envelope: MS4wfDlZQPjzvLnB68ReKKEzJ8sWiwKNXd67BrR+NkXNpLK/W7/ju+nDZVgyKwmWsKOrJZtc2vduFIfFqhTsAxvol05Q+cJagdY80IxBck804mQRFtRs/xpC TYGMzNqcSpm2OTAshJw7J6FeGWuxTgbegfNdRLC2ObzQJm4w/YIFpJgNt5RZQEkIX2UkxjGW+EJR5w==
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019