Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Wed, 20 Nov 2002 12:34:54 -0500 From: Chet Ramey To: cygwin AT cygwin DOT com Subject: Re: bash builtin pwd returns Windows style names Cc: chet AT po DOT cwru DOT edu Reply-To: chet AT po DOT cwru DOT edu References: <20021120120809 DOT H24928 AT cygbert DOT vinschen DOT de> <20021120164252 DOT GE15386 AT redhat DOT com> <20021120182619 DOT P24928 AT cygbert DOT vinschen DOT 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 AT po DOT CWRU DOT 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 AT po DOT CWRU DOT 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/