This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygpath -w issue
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