From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19146 invoked by alias); 18 Nov 2016 15:32:59 -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 19134 invoked by uid 89); 18 Nov 2016 15:32:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=0304, 0.304, rmdir, Hx-languages-length:1911 X-HELO: mail-it0-f52.google.com Received: from mail-it0-f52.google.com (HELO mail-it0-f52.google.com) (209.85.214.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Nov 2016 15:32:48 +0000 Received: by mail-it0-f52.google.com with SMTP id j191so36982295ita.1 for ; Fri, 18 Nov 2016 07:32:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=vxVoQVIz81TuiroTTneUq8cEwvMDq3Ig1OyKgLnmYfo=; b=GYN35s0HYmQijvezc9SMwiiXSGI0X0uUSnz+AdxZN4mIgydbTlQe5/QxE0wo6bVfre 5otqlE3RC7P85RpVfz5fbjJlpi8qX+ISb9Oh4muWfgCeMdt1IRj+sCdD8P+hgytP0f5x rErM9kGRIh1HhKxLFn2F0iPCQd+N9jv8xHRt59mfMBZ90ULRy4CWSUDdSLXj4dmyqQXq M7taUmBjDm6o2j08Yf45f+mM4FIEB5YShtpcID+3aHdex5ZYzQly6Uqjnhj3Gqukz1F7 zmXlSWoF/BNO3H1qG+nYSYRT1gtHwZeDS1mwFRqQF4Qj+ZsDXJcnsJoA1Neo9my3HXWm r0tQ== X-Gm-Message-State: AKaTC025xV64FVAFPhzL6W6q7dwfcMEocypzq3WR4G1bwOBAxM6VuFRprzGtp1QqxfGJ1A== X-Received: by 10.36.65.39 with SMTP id x39mr208586ita.103.1479483166946; Fri, 18 Nov 2016 07:32:46 -0800 (PST) Received: from [192.168.0.6] (d27-96-48-76.nap.wideopenwest.com. [96.27.76.48]) by smtp.gmail.com with ESMTPSA id m128sm1148160itm.9.2016.11.18.07.32.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Nov 2016 07:32:46 -0800 (PST) Subject: Re: case sensitivity on Windows 7 Enterprise with NTFS drive To: cygwin@cygwin.com References: <20161118151507.GD22194@calimero.vinschen.de> From: cyg Simple Message-ID: <489b1282-8e0f-0de7-bdd3-168c3b7433db@gmail.com> Date: Fri, 18 Nov 2016 15:51:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161118151507.GD22194@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00234.txt.bz2 On 11/18/2016 10:15 AM, Corinna Vinschen wrote: > On Nov 18 13:59, Matthias Herz wrote: >> Dear Cygwin Team, >> >> on my cygwin installation I have problems with case sensitivity although I >> did everything described here: >> https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesens= >> >> I really need case sentitivity since I would like to use OpenFOAM (c++ cfd >> library) inside cygwin and OpenFOAM has a bunch of files like scalar.H and >> Scalar.H. >> >> The minimal example for my problem is: >>> mkdir test1 >>> touch test1/file.txt >>> touch test1/File.txt >> >> This gives me >> test1 >> |-- file.txt >> |-- File.txt >> >> This means touch is somehow case sensitive but >>> cp -r test1 test2 >> fails with the message: >>> cp: cannot create regular file /test2/file.txt: File exists > > Works for me, I just tested it on a local NTFS. Is the file tree on > some remote FS by any chance? If so, what Fs is it? Some FSes are > known to have (not so) funny bugs when deviating from Windows defaults. > Or, was the CWD set the same way when calling mkdir vs. when calling cp? > If you use Windows path rather than POSIX paths, case sensitivity won't > work since WIndows paths ar handled with Windows default assumptions. > > Bottom line is, I *know* it works, and it does so since Cygwin 1.7.1. > There must be some quirk in either your FS or in your path handling. As I said already, this simply isn't a portable solution. $ uname -a CYGWIN_NT-10.0 xxxxxx 2.6.0(0.304/5/3) 2016-08-31 14:32 x86_64 Cygwin $ mkdir A $ mkdir a mkdir: cannot create directory ‘a’: File exists $ rmdir A $ touch A && ls -l A -rw-r--r-- 1 cygSimple cygSimple 0 Nov 18 10:26 A $ sleep 60 && touch a && ls -l A -rw-r--r-- 1 cygSimple cygSimple 0 Nov 18 10:27 A My installation is on the native C:\ drive that is NTFS. -- cyg Simple -- 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