delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/19/07:35:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.7 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,TW_YG
X-Spam-Check-By: sourceware.org
Date: Thu, 19 Apr 2012 15:24:37 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1864410083.20120419152437@mtu-net.ru>
To: Christopher Faylor <cygwin AT cygwin DOT com>
Subject: Re: cygpath -w issue
In-Reply-To: <20120418135621.GA29332@ednor.casa.cgf.cx>
References: <2BF01EB27B56CC478AD6E5A0A28931F20441794C AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> <20120418135621 DOT GA29332 AT ednor DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
X-IsSubscribed: yes
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

Greetings, Christopher Faylor!

> On Wed, Apr 18, 2012 at 07:51:05AM -0500, Nellis, Kenneth wrote:
>>cygpath -w seems to be inconsistent with /dev/* things:
>>
>>$ uname -svr
>>CYGWIN_NT-5.1 1.7.14s(0.260/5/3) 20120406 19:41:34
>>$ cygpath -w /dev/clip
>>C:\cygwin\dev\clip
>>$ cygpath -w /dev/random
>>/dev/random
>>$
>>
>>I first thought it was because C:\cygwin\dev\random
>>does not exist, but then:
>>
>>$ cygpath -w /dev/xyz
>>C:\cygwin\dev\xyz
>>$

> /dev/random has special meaning to Cygwin.  There is no windows
> equivalent to it so translating it to a Windows path wouldn't
> make any sense.  You couldn't use it in a Windows program.

> /dev/xyz has no meaning so Cygwin just translates it to a MS-DOS
> path.

Could it at least translate /dev/clipboard to CLIP: ?
Not very useful in general, but I can use it.


--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 19.04.2012, <15:23>

Sorry for my terrible english...


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