delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/25/17:09:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <4C75866E.3090404@bopp.net>
Date: Wed, 25 Aug 2010 16:09:02 -0500
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: associating device names with cygdrive directories
References: <4C757349 DOT 902 AT bellsouth DOT net> <20100825200335 DOT GA14607 AT ednor DOT casa DOT cgf DOT cx> <0105D5C1E0353146B1B222348B0411A20946F38B4B AT NIHMLBX02 DOT nih DOT gov>
In-Reply-To: <0105D5C1E0353146B1B222348B0411A20946F38B4B@NIHMLBX02.nih.gov>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 8/25/2010 3:32 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote:
> On Wed, Aug 25, 2010 at 02:47:21PM -0500, Charles D. Russell wrote:
>> On Linux, the mount command reveals the association between filesystem 
>> names and /dev/ names, but Cygwin mount doesn't tell.
> 
> Is this what you want?  (The multiple spaces are really tabs.)
> 
> $ for F in /dev/s* ; do echo "$F    $(cygpath -w $F)" ; done
> /dev/scd0       \\.\D:
> /dev/scd1       \Device\CdRom1
> /dev/scd2       \Device\CdRom2

<snip>

That's a pretty clever solution.  Too bad there is no way to use cygpath
to go the other direction.  Ideally, we could do something like:

$ cygpath -t device D:
/dev/scd0

Of course it's hard to justify adding such functionality without a good
use case.

-Jeremy


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

- Raw text -


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