From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99552 invoked by alias); 6 Dec 2015 17:12:28 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 99541 invoked by uid 89); 6 Dec 2015 17:12:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-in-05.arcor-online.net Received: from mail-in-05.arcor-online.net (HELO mail-in-05.arcor-online.net) (151.189.21.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sun, 06 Dec 2015 17:12:25 +0000 Received: from mail-in-17-z2.arcor-online.net (mail-in-17-z2.arcor-online.net [151.189.8.34]) by mx.arcor.de (Postfix) with ESMTP id 3pDDpt5Zmgz2xmK for ; Sun, 6 Dec 2015 18:12:22 +0100 (CET) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-17-z2.arcor-online.net (Postfix) with ESMTP id BB7BC111FFB for ; Sun, 6 Dec 2015 18:12:22 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-01.arcor-online.net 3pDDpt3BW1zFQZJ Received: from Gertrud (p4FF1C77F.dip0.t-ipconnect.de [79.241.199.127]) (Authenticated sender: stromeko@arcor.de) by mail-in-01.arcor-online.net (Postfix) with ESMTPSA id 3pDDpt3BW1zFQZJ for ; Sun, 6 Dec 2015 18:12:21 +0100 (CET) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: Ability to specify /cygdrive mount value in setup 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> Date: Sun, 06 Dec 2015 17:12:00 -0000 In-Reply-To: <87egeztzwg.fsf@Rainer.invalid> (Achim Gratz's message of "Sun, 06 Dec 2015 15:28:15 +0100") Message-ID: <874mfvtsb2.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-12/txt/msg00070.txt.bz2 Achim Gratz writes: > 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=C2=A0wouldn't mind if= all > those special directories would also be available via /proc/, > which means I wouldn't even need to fork cygpath for getting there. This will get me the correct path to link to, but I still think it's unnecessarily ugly (and took a while to cover all the possibilities of not-so-well-formed cygdrive prefixes): --8<---------------cut here---------------start------------->8--- CYGDRIVE=3D"$(/usr/bin/cygpath -u C:)" WINETC=3D"$(/usr/bin/cygpath -S -u)/drivers/etc" WINETC=3D"/proc/cygdrive/${WINETC#${CYGDRIVE%c}}" --8<---------------cut here---------------end--------------->8--- versus the hypothetical --8<---------------cut here---------------start------------->8--- WINETC=3D"$(/usr/bin/cygpath -S -U)/drivers/etc" --8<---------------cut here---------------end--------------->8--- BTW, the path comprising the cygdrive prefix probably needs to be sanitized to avoid things like --8<---------------cut here---------------start------------->8--- $ mount -c /bla//fasel////blum////// --8<---------------cut here---------------end--------------->8--- leaking into the wild. Regards, Achim. --=20 +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds -- 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