X-Recipient: archive-cygwin@delorie.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@panix.com>
cc: cygwin@cygwin.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.NEB.4.64.0904301631080.20542@panix2.panix.com>  <loom.20090430T222137-118@post.gmane.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@panix.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/

