delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Message-ID: | <42FA4604.8000507@tlinx.org> |
Date: | Wed, 10 Aug 2005 11:23:00 -0700 |
From: | Linda W <cygwin AT tlinx DOT org> |
User-Agent: | Mozilla Thunderbird 1.0.6 (Windows/20050716) |
MIME-Version: | 1.0 |
To: | "'Cygwin List'" <cygwin AT cygwin DOT com> |
Subject: | Programatically finding value of "cygdrive" prefix |
X-IsSubscribed: | yes |
Is there a way to find out in a bash script the cygdrive prefix? I thought something simple like mount -p|tail -1|cut -f1 but that incorrectly assumed the fields were tab delimited. Since there can be spaces in the cygdrive prefix, I can't use space a delimiter, example: # mount -p Prefix Type Flags /cyg drive posix path system binmode ---- I could the /proc (registry) interface, but that's seems like a "hack" and not necessarily a supported way of getting the information: # echo prefix = \"$(<"/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygnus Solutions/Cygwin/mounts v2/cygdrive prefix" )\" prefix = "/cyg drive posix path" eh? Linda -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |