delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/30/19:00:52

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 <tmcd AT panix DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Normalized directory name
In-Reply-To: <loom.20090430T222137-118@post.gmane.org>
Message-ID: <Pine.NEB.4.64.0904301753280.8661@panix1.panix.com>
References: <Pine DOT NEB DOT 4 DOT 64 DOT 0904301631080 DOT 20542 AT panix2 DOT panix DOT com> <loom DOT 20090430T222137-118 AT post DOT gmane DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

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/

- Raw text -


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