delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/07/18:53:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=lv1z4dE
YYjYOzfv7g8O0BxhrRj0wVHosEl9uQ9GF6ddNYZBPSqwOoCGNglZIRauKA1Nvx6w
u9sdcS/vElPqREe03FWrE77W+WMtIZEDis5xoUoeEBfCeXsdK1MMnHG6mmwrkR/C
SDhcrE2pO7QZQs1tQVOPB0VLJDTLKVnglfok=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=d4+L5dbez3SjI
udoRsdbqB+o1oA=; b=AF4vex5yjQYmL7IqO+YQlPED/wPlAZt9Z72CaW1ZrWXfY
V7+KT7aGtQ0FiWj2zfgaYKnXVa8lbSAuIX7dj+Aol70tY1kR4urwV+cDwZw1hKXr
zprkMcmk9TLzRQflnuA8TlMQb9v0a3m1bwOvzE98dPGYwLDYRaegUfqTvXkOsM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=enduser, H*f:sk:6e5968a, H*i:sk:6e5968a, our
X-HELO: mail-qt0-f180.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0GkzLlJSZZSFoZw2GC2XK38rz7cyrPeqZtjy+iA7KUQ=; b=mTCZ+QePyxzlAV98nideoZOnTkbCgZJBMOcGwJickEgCn3lBesJwq/tSWqUMriiOQ+ bO4i7Kd2ZTLMgt2h/Fzc0iP2HRk51DGudTup6JIm16/T+ZhVhW8YzauZ7nC5r/4xD+dj 6Q4xSU36vapPl5GD5vwKGEb1D6BBWWWhwXShzAz6SED9Red6vzfo28KTvm2O+PsMaIGH dQCTN+O16EK+rolcvhoMzmLaAQM/+7EZkFDrq2htYR4cv9Ls4udPNzEUDjgoFMBiJCYX IXfY8S0cGWTq1Aqm/fTEQQP0LOpS50WIocxDHHaGy7lIzlsa6UoYhEf6x9WAhPwswllS lurg==
X-Gm-Message-State: AKaTC00RKkvXRjaoBR2lEtyF8Cftw+uXVgOo3NLRDxLHRK+HCiMEhfd80FRB11e5D69R3p+xrbKU3ILWZ0AELw==
X-Received: by 10.200.47.204 with SMTP id m12mr71974945qta.79.1481154771818; Wed, 07 Dec 2016 15:52:51 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <6e5968a1-a667-f911-fbec-f83e4ef34608@redhat.com>
References: <CADs2-=TCsi-vpQxa+Nhwgc6GHo734qpGh+DOYcuYo36C5r4t0g AT mail DOT gmail DOT com> <a26c3edd-8221-12e3-9bc5-c03c7b13bca1 AT redhat DOT com> <CADs2-=QW6AeU9a8_7c557WBfB2VgY6aNQ19E+YK-fd_jnKBMfw AT mail DOT gmail DOT com> <6e5968a1-a667-f911-fbec-f83e4ef34608 AT redhat DOT com>
From: Dipak Gaigole <dipakgaigole AT gmail DOT com>
Date: Thu, 8 Dec 2016 05:22:51 +0530
Message-ID: <CADs2-=TeVMnQ5sdVGJnSw0ouNh_dj3cBf1PP6fN-62smsBeDpA@mail.gmail.com>
Subject: Re: Problem with chdir and GetCurrentDirectory on Windows 2016
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

>>
>> So in this situation, is it possible to get the cwd value as
>> "/cygdrive/c/temp/appdir/bin" using some cygwin API?
>
> No, it is generally not possible to get the POSIX path to anything in
> the cygwin root (/) tree to be prefixed by the /cygdrive prefix. The
> /cygdrive prefix exists solely to resolve paths that are outside of /,
> so paths inside that tree don't need the /cygdrive prefix.
>
This path is also displayed to the enduser at different places. So our
requirement is to always get a path in the /cygdrive/ prefix format
irrespective of whether it is inside the cygwin root (/) or outside of
/.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019