www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/21/15:34:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 21 Sep 2009 21:33:40 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] recursive /cygdrive problem
Message-ID: <20090921193340.GN20981@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4AB1031D DOT 1050802 AT shaddybaddah DOT name> <4AB10645 DOT 9040401 AT cygwin DOT com> <4AB10A7F DOT 2090404 AT shaddybaddah DOT name>
MIME-Version: 1.0
In-Reply-To: <4AB10A7F.2090404@shaddybaddah.name>
User-Agent: Mutt/1.5.19 (2009-02-20)
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 Sep 17 01:55, Shaddy Baddah wrote:
> Hi Larry,
>
> Larry Hall (Cygwin) wrote:
>>
>> <snip>
>>
>>> Genuine bug?
>>
>> No, a feature.  Having the existing drives show up under '/cygdrive'  
>> is a convenience
>> for things like bash and other shells so that they can do completion  
>> on the paths to
>> these drives.  If you don't want what's under the '/cygdrive'  
>> directory, you can omit
>> it from your invocation of 'find'.
>>
>
> Respectfully, I think you've misunderstood my problem. I've just
> posted a followup which will show an out and out inconsistency (well,
> at least in my opinion):
>
> Shaddy AT x-vista ~
> $ ls /cygdrive/c/software/cygwin/cygdrive
>
> Shaddy AT x-vista ~
> $ cd /cygdrive/c/software/cygwin/
>
> Shaddy AT x-vista /cygdrive/c/software/cygwin
> $ ls ./cygdrive
> c  d  e
>
> Shaddy AT x-vista /cygdrive/c/software/cygwin
> $
>
> IMO, the result of the first ls is the more logical. It at least is
> consistent with 1.5 if anything else (not that this is a strong
> argument).

It's a bug nevertheless.  I introduced it in May, when I tried to
workaround a problem with a stored cwd using non-ASCII chars in case
the application switches the locale.  The idea was to store the path
only as Windows path and evaluate the matching posix path only on
first usage.  Unfortunately that results in an unwanted side-effect:

  $ cd /cygdrive/c/cygwin
  $ pwd
  /

I fixed this problem now differently.  When setlocale is called, the
path of the current working dir is actually converted from the old
charset to the new charset.


Thanks for the report,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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