* bash builtin pwd returns Windows style names
@ 2002-11-20 2:16 Richter Norbert
2002-11-20 3:51 ` Corinna Vinschen
0 siblings, 1 reply; 6+ messages in thread
From: Richter Norbert @ 2002-11-20 2:16 UTC (permalink / raw)
To: 'cygwin@cygwin.com'; +Cc: Richter Norbert
Hello,
I observed that in previous releases of Cygwin (I think it was 1.3.12) the
bash builtin
pwd returned directory names in the form:
/cygdrive/c/classes
but if I try this now with the release 1.3.14 (and also with 1.3.15 and bash
2.05b) I get
c:/classes
I wonder if this has been intentionally changed, and if so, whether it is
possible to configure it either way.
Thanks in advance for comments on this,
Norbert Richter
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash builtin pwd returns Windows style names
2002-11-20 2:16 bash builtin pwd returns Windows style names Richter Norbert
@ 2002-11-20 3:51 ` Corinna Vinschen
2002-11-20 9:24 ` Christopher Faylor
0 siblings, 1 reply; 6+ messages in thread
From: Corinna Vinschen @ 2002-11-20 3:51 UTC (permalink / raw)
To: 'cygwin@cygwin.com'
On Wed, Nov 20, 2002 at 10:54:16AM +0100, Richter Norbert wrote:
> Hello,
>
> I observed that in previous releases of Cygwin (I think it was 1.3.12) the
> bash builtin
> pwd returned directory names in the form:
> /cygdrive/c/classes
>
> but if I try this now with the release 1.3.14 (and also with 1.3.15 and bash
> 2.05b) I get
> c:/classes
bash-2.05b$ uname -a
CYGWIN_NT-5.1 CORINNA 1.3.15(0.63/3/2) 2002-11-07 13:57 i686 unknown
bash-2.05b$ cd d:
bash-2.05b$ pwd
/cygdrive/d
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash builtin pwd returns Windows style names
2002-11-20 3:51 ` Corinna Vinschen
@ 2002-11-20 9:24 ` Christopher Faylor
2002-11-20 9:54 ` Corinna Vinschen
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Faylor @ 2002-11-20 9:24 UTC (permalink / raw)
To: cygwin
On Wed, Nov 20, 2002 at 12:08:09PM +0100, Corinna Vinschen wrote:
>On Wed, Nov 20, 2002 at 10:54:16AM +0100, Richter Norbert wrote:
>>I observed that in previous releases of Cygwin (I think it was 1.3.12)
>>the bash builtin pwd returned directory names in the form:
>> /cygdrive/c/classes
>>
>>but if I try this now with the release 1.3.14 (and also with 1.3.15 and
>>bash 2.05b) I get
>> c:/classes
>
>bash-2.05b$ uname -a
>CYGWIN_NT-5.1 CORINNA 1.3.15(0.63/3/2) 2002-11-07 13:57 i686 unknown
>bash-2.05b$ cd d:
>bash-2.05b$ pwd
>/cygdrive/d
Try doing a "cd c:/tmp" or something similar. Bash will dutifully report
that you are in the c:/tmp directory at that point.
cgf
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash builtin pwd returns Windows style names
2002-11-20 9:24 ` Christopher Faylor
@ 2002-11-20 9:54 ` Corinna Vinschen
2002-11-20 10:31 ` Chet Ramey
0 siblings, 1 reply; 6+ messages in thread
From: Corinna Vinschen @ 2002-11-20 9:54 UTC (permalink / raw)
To: cygwin; +Cc: chet
On Wed, Nov 20, 2002 at 11:42:53AM -0500, Christopher Faylor wrote:
> 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?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash builtin pwd returns Windows style names
2002-11-20 9:54 ` Corinna Vinschen
@ 2002-11-20 10:31 ` Chet Ramey
0 siblings, 0 replies; 6+ messages in thread
From: Chet Ramey @ 2002-11-20 10:31 UTC (permalink / raw)
To: cygwin; +Cc: chet
> > 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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bash builtin pwd returns Windows style names
@ 2002-11-21 4:21 Richter Norbert
0 siblings, 0 replies; 6+ messages in thread
From: Richter Norbert @ 2002-11-21 4:21 UTC (permalink / raw)
To: 'cygwin@cygwin.com'
Hi,
> bash-2.05b$ uname -a
> CYGWIN_NT-5.1 CORINNA 1.3.15(0.63/3/2) 2002-11-07 13:57 i686 unknown
> bash-2.05b$ cd d:
> bash-2.05b$ pwd
> /cygdrive/d
> Corinna
thank you, Corinna, for this hint. It works also with me.
However, if you do
bash-2.05b$ uname -a
CYGWIN_NT-5.0 PC4265 1.3.15(0.63/3/2) 2002-11-07 13:57 i686 unknown
bash-2.05b$ cd c:/tmp
bash-2.05b$ pwd
c:/tmp
bash-2.05b$ /bin/pwd
/cygdrive/c/tmp
Cygwin/bash does not recognize c:/tmp as a windows path name. I am not sure,
if
it is supposed to do, but perhaps you can tell me.
If you do however
bash-2.05b$ cd 'c:\tmp'
bash-2.05b$ pwd
/cygdrive/c/tmp
the pathname c:\tmp is recognized as windows pathname and implicitely
converted.
Thanks for your help,
Regards, Norbert
--
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-11-21 8:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-20 2:16 bash builtin pwd returns Windows style names Richter Norbert
2002-11-20 3:51 ` Corinna Vinschen
2002-11-20 9:24 ` Christopher Faylor
2002-11-20 9:54 ` Corinna Vinschen
2002-11-20 10:31 ` Chet Ramey
2002-11-21 4:21 Richter Norbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).