X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,MISSING_HEADERS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Date: Thu, 30 Apr 2009 18:00:41 -0500 (CDT) From: Tim McDaniel cc: cygwin AT cygwin DOT com Subject: Re: Normalized directory name In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, 30 Apr 2009, Eric Blake wrote: > But beware that with cygwin 1.7, you can have directories which are > case sensitive, in which case the glob may return multiple files. A few questions out of curiosity, since I've not read up on Cygwin 1.7: What does Cygwin 1.7 do in that case with mkdir FROG cd frog ? I assume there'd be an error, as on UNIXy systems. I assume there'd be the same error for mkdir FROG mkdir fRog cd frog In a completely case-sensitive directory, I would expect that the problem of normalizing a directory or file name would be a no-op, just like on UNIXy systems: if you enter the name exactly, it knows the exact spelling without any other work; if you don't enter it exactly, there's an error, and thus no need to normalize the invalid name. Is there a way for a script to tell whether it's running under Cygwin 1.7, and whether the directory is case-sensitive? -- Tim McDaniel, tmcd AT panix DOT com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/