X-Recipient: archive-cygwin@delorie.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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=GFUObFLq+94viFT9
	+ENM5siRNc8bi+m3SHK2ykKI+7dzUrNdL14N1grJAf9XZlIfp6hqpw8IPPLNyNtf
	5A5ohHz4BYXtZlxZTSnQbuSKFPgsdn4AX18adJ6SCxftWfobgIOk/UlPAPPzYEJv
	YCXXTZCmVGnyCYnYtASy9Vz+gTw=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=yla4rNdT9bLjhrnFeKKIMh
	nbfMY=; b=isr3+V1cc2GT9gUnBvZb7ZKSz5Mkq7uCKxa3b//NW6v3kR7Zi7Fbcg
	3faFewDvh2CEGRgD2wjAMcWoqUuhjWwXMiN8iAjMwGW1qcx2Wo4kfBwBcjL7oDcq
	r0xirOj0xBUmtWDM4KHXJPRw8qYz0wjb0xbLBVdacmDI+kvo+jwk8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qk0-f173.google.com
X-Received: by 10.55.75.137 with SMTP id y131mr30541519qka.69.1449421283660;        Sun, 06 Dec 2015 09:01:23 -0800 (PST)
Subject: Re: Ability to specify /cygdrive mount value in setup
To: cygwin@cygwin.com
References: <20151125140420.12415@web008.roc2.bluetie.com> <1447966985.20151125232513@yandex.ru> <56562105.5040500@gmail.com> <6CF2FC1279D0844C9357664DC5A08BA21BC3C3B8@msgb09.nih.gov> <20151126134221.GN2755@calimero.vinschen.de> <87mvtnucw6.fsf@Rainer.invalid> <20151206141054.GC17433@calimero.vinschen.de> <87egeztzwg.fsf@Rainer.invalid>
From: cyg Simple <cygsimple@gmail.com>
X-Enigmail-Draft-Status: N1110
Message-ID: <566469E2.2000002@gmail.com>
Date: Sun, 6 Dec 2015 12:01:22 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
MIME-Version: 1.0
In-Reply-To: <87egeztzwg.fsf@Rainer.invalid>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

On 12/6/2015 9:28 AM, Achim Gratz wrote:
> Corinna Vinschen writes:
>> No offense, but you didn't understand what I mean, it seems.
> 
> I did, I think -- but read my request again.
> 
>> Don't call cygpath.  Just use /proc/cygdrive directly.  It's that
>> simple.  While the cygdrive prefix changes, /proc/cygdrive will
>> *never* change.  E.g.
> 
> I need cygpath to get the system directory (hint: it need not be in
> C:\Windows\System32) and cygpath delivers that directory with the
> cygdrive prefix and not /proc/cygpath prepended.  I wouldn't mind if all
> those special directories would also be available via /proc/<whatever>,
> which means I wouldn't even need to fork cygpath for getting there.
> 

Use the $WINDIR variable to find the Windows path and manipulate its
value to prepend /proc/cygdrive/ and suffix its value with /system32.
The system32 directory will always be in $WINDIR/sytem32.

-- 
cyg Simple

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

