This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.7.25: problem with the cd command in ksh
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 6 Oct 2013 18:33:10 -0400
- Subject: Re: 1.7.25: problem with the cd command in ksh
- Authentication-results: sourceware.org; auth=none
- References: <524FB2BB dot 40608 at orange dot fr> <CAM9pMnMcQcp4prHqs5Bh1sCt0HGC1zaTcmHEXFPrj_+3ZffjmA at mail dot gmail dot com> <52512348 dot 1050702 at orange dot fr> <5251240C dot 6060805 at easynet dot fr> <CAM9pMnO9NX0-hpSRy7i-2HyYAXnQC3wXsHeJC_ZBx3cD-vyQaw at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
On Sun, Oct 06, 2013 at 01:06:52PM +0200, Robert Klemme wrote:
>On Sun, Oct 6, 2013 at 10:49 AM, Francis ANDRE <francis.andre@easynet.fr> wrote:
>> Hi Robert
>>
>> The problem here is that the string of the target directory is computed by
>> another tool -- Mercurial in this case -- and that Mercurial returns a
>> absolute windows style path as
>>
>> Z:/DEV/OpenJDK_7u40/hotspot
>>
>> which seems to be relative in Unix world but which is absolute in the
>> Windows world.
>>
>>
>> Moreover, when using the bash shell, the command
>>
>> FrancisANDRE@idefix /cygdrive/c/Cygwin
>> $ cd Z:/DEV/OpenJDK_7u40/hotspot
>>
>> moves the cwd without error to
>> FrancisANDRE@idefix /cygdrive/z/DEV/OpenJDK_7u40/hotspot
>>
>>
>> So why the ksh cannot do the same?
>
>That question ksh developers or cygwin package maintainers should be
>able to answer. They might just use different syscalls which vary in
>behavior on Cygwin. You could try to find that out with strace.
More likely it is just because ksh automatically prepends the current
working directory to something that it considers to be relative.
I know I'm a broken record on the subject but it is not a requirement that
Cygwin tools to be able to understand MS-DOS paths. It's possible that they
do, by coincidence, understand them but it is not a given that they will.
cgf
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple