From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13396 invoked by alias); 10 Feb 2011 20:23:45 -0000 Received: (qmail 13387 invoked by uid 22791); 10 Feb 2011 20:23:45 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,TW_YG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from namor.nationwide.com (HELO namor.nationwide.com) (155.188.168.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Feb 2011 20:23:41 +0000 Received: from nbbaws965.nwideweb.net ([10.93.148.8]) by namor.nationwide.com with ESMTP; 10 Feb 2011 15:23:39 -0500 Received: from entedcmail08.nwie.net ([172.24.196.222]) by nbbaws965.nwideweb.net with ESMTP; 10 Feb 2011 15:23:39 -0500 In-Reply-To: <4D541D35.3020901@redhat.com> References: <4D52A7DD.7080208@bonhard.uklinux.net> <4D52B4D3.2040102@sbcglobal.net> <20110209163858.GJ16194@calimero.vinschen.de> <0105D5C1E0353146B1B222348B0411A209C0F073A4@NIHMLBX02.nih.gov> <4D541D35.3020901@redhat.com> To: cygwin@cygwin.com MIME-Version: 1.0 Subject: Re: Accessing folders elsewhere than C:\cygwin X-KeepSent: 248AECF7:EB384F53-85257833:006FBBCF; type=4; name=$KeepSent Message-ID: From: RISINGP1@nationwide.com Date: Thu, 10 Feb 2011 20:23:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-IsSubscribed: yes 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 X-SW-Source: 2011-02/txt/msg00287.txt.bz2 Eric wrote on 02/10/2011 12:15:33 PM: > On 02/10/2011 10:13 AM, Buchbinder, Barry (NIH/NIAID) [E] wrote: > > Might the ability to identify cygwin's root be a good > > thing to add to cygpath? > > And what's so hard about 'cygpath -w /'? > > > Under "System information", one could have an option > > > > -R, --root output cygwin root directory > > > > where > > > > $ cygpath -Rw > > C:\cygwin > > Trading / for -R doesn't justify the bloat and burning another short > option character, in my opinion. > > -- > Eric Blake eblake at redhat dot com +1-801-349-2682 > Libvirt virtualization library http://libvirt.org > If you need it ofetn enough, here is a simple script for displaying the cygwin root: case $1 in -w) mount | grep " / " | cut -d" " -f1 | sed 's:/:\\:g' ;; -u) DRIVE=$(mount | grep " / " | cut -d":" -f1): echo $(mount | grep "^$DRIVE " | \ cut -d" " -f3)$(mount | grep " / " | cut -d" " -f1) | \ sed 's/'$DRIVE'//' ;; *) echo "Please specify -w (Windows) or -u (Unix)" ;; esac - Phil -- 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