bash builtin pwd returns Windows style names
Chet Ramey
chet@nike.ins.cwru.edu
Wed Nov 20 10:31:00 GMT 2002
> > 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/
More information about the Cygwin
mailing list