delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/18/09:56:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
X-Mail-Handler: MailHop Outbound by DynDNS
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+QduCqTEX4yS/jhZSUtvpY
Date: Wed, 18 Apr 2012 09:56:21 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygpath -w issue
Message-ID: <20120418135621.GA29332@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <2BF01EB27B56CC478AD6E5A0A28931F20441794C AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net>
MIME-Version: 1.0
In-Reply-To: <2BF01EB27B56CC478AD6E5A0A28931F20441794C@A1DAL1SWPES19MB.ams.acs-inc.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
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 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.

cgf

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