This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Ability to specify /cygdrive mount value in setup
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 6 Dec 2015 12:01:22 -0500
- Subject: Re: Ability to specify /cygdrive mount value in setup
- Authentication-results: sourceware.org; auth=none
- References: <20151125140420 dot 12415 at web008 dot roc2 dot bluetie dot com> <1447966985 dot 20151125232513 at yandex dot ru> <56562105 dot 5040500 at gmail dot com> <6CF2FC1279D0844C9357664DC5A08BA21BC3C3B8 at msgb09 dot nih dot gov> <20151126134221 dot GN2755 at calimero dot vinschen dot de> <87mvtnucw6 dot fsf at Rainer dot invalid> <20151206141054 dot GC17433 at calimero dot vinschen dot de> <87egeztzwg dot fsf at Rainer dot invalid>
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