Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 20 Nov 2002 12:34:54 -0500
From: Chet Ramey <chet@nike.ins.cwru.edu>
To: cygwin@cygwin.com
Subject: Re: bash builtin pwd returns Windows style names
Cc: chet@po.cwru.edu
Reply-To: chet@po.cwru.edu
References: <EF6916EDC9AEBE4A8C3F03DD6073B9C30120866A@exch1.softlab.de> <20021120120809.H24928@cygbert.vinschen.de> <20021120164252.GE15386@redhat.com> <20021120182619.P24928@cygbert.vinschen.de>
In-Reply-To: Message from corinna-cygwin@cygwin.com of Wed, 20 Nov 2002 18:26:19 +0100 (id <20021120182619.P24928@cygbert.vinschen.de>)
Message-ID: <021120173454.AA77539.SM@nike.ins.cwru.edu>
Read-Receipt-To: chet@po.CWRU.Edu
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

> > Try doing a "cd c:/tmp" or something similar.  Bash will dutifully report
> > that you are in the c:/tmp directory at that point.
> 
> Ok. That's a bash problem.  It doesn't recognize c: as a drive but as
> the beginning of a relative path.
> 
> This is weird since bash has special handling for drive letters under
> Cygwin in lib/sh/pathcanon.c, function sh_canonpath().  For some reason
> it just doesn't work...
> 
> Chet?  Do you have an idea how to solve that?

Start looking at it with a debugger.

The bash function absolute_pathname() should report that c:/tmp is absolute.
If it succeeds, set a breakpoint in change_to_directory() and see what it's
doing.

I'm not on the cygwin mailing list, and can't provide any debugging
assistance right now, so contact me directly if you have more questions.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

