This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash builtin pwd returns Windows style names

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

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.


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

Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]