delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/02/16:38:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Sun, 2 Jan 2005 16:33:01 -0500
From: "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: check_case:adjust still an option?
Message-ID: <20050102213301.GA552397@hpn5170>
References: <20050102203221 DOT GB344 AT efn DOT org>
Mime-Version: 1.0
In-Reply-To: <20050102203221.GB344@efn.org>
User-Agent: Mutt/1.4.1i

On Sun, Jan 02, 2005 at 12:32:21PM -0800, Yitzchak Scott-Thoennes wrote:
> /usr/share/doc/cygwin-doc-1.3/html/cygwin-ug-net/using-cygwinenv.html says:
> 
>    check_case:level - Controls the behaviour of Cygwin when a user
> tries to open or create a file using a case different from the case of
> the path as asved on the disk. level is one of relaxed, adjust and
> strict.
>    ...
>    adjust behaves mostly invisible. The POSIX input path is internally
> adjusted in case, so that the resulting DOS path uses the correct case
> throughout. You can see the result when changing the directory using a
> wrong case and calling /bin/pwd afterwards.
> 
> but I'm not seeing any difference between adjust and relaxed; is adjust
> still a valid option?

Sure, but not as visibly as documented above. For example under sh
$: cd c:/HoME/PiErRe
$: /bin/pwd
/c/HoME/Pierre

I has a look at the code and it is the Windows path that is adjusted,
not the Posix path. I think it was always like that.
In the case of chdir, the change in the Posix path was a result of former
transformations of the Windows path back to Posix form. Those can cause
trouble when several Posix paths point to the same Windows path (the mapping
Posix -- Windows is not bijective). In particular the final text/binary mode
need not be as expected, and this caused complaints.  

Pierre

 

--
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