delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/20/13:36:37

X-Spam-Check-By: sourceware.org
Date: Sun, 20 May 2007 13:36:16 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to uniformly point to the root of a drive?
Message-ID: <20070520173616.GA9531@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <f2por8$as9$1 AT sea DOT gmane DOT org> <46506BA1 DOT C3502CCD AT dessent DOT net> <0a3801c79af6$c32395b0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <46507312 DOT 2EDBD2A5 AT dessent DOT net> <0a3901c79afa$41cf13a0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <f2q01a$fj$1 AT sea DOT gmane DOT org> <20070520172705 DOT GA9280 AT ednor DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
In-Reply-To: <20070520172705.GA9280@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.14 (2007-02-12)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Sun, May 20, 2007 at 01:27:05PM -0400, Christopher Faylor wrote:
>So it sounds like Brian's method would work then wouldn't it?

Does this give you what you want, too?

driveroot=$(cygpath $(cygpath -wm /)/..)

cgf

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

- Raw text -


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