cygpath (reprised)
Nellis, Kenneth (Conduent)
Kenneth.Nellis@conduent.com
Tue Feb 21 18:22:00 GMT 2017
From: Andrey Repin
> > But, consider the following:
>
> > $ cygpath -w a:b | od -An -tx1c
> > 41 3a 62 0a
> > A : b \n
> > $
>
> > Instead of the special character colon (:), shouldn't cygpath be showing
> > something in the Unicode Private Use area?
>
> No, it shouldn't.
> You've requested a name "b" in the current directory on the disk "A:", or
> a file substream "b" of the file "a".
> Both are valid system paths.
Right. Thanx. I wondered why the "a" got up-cased.
I suppose one could argue that, by using -w, that cygpath might assume that it
is converting *from* a POSIX path, and therefore the colon would not indicate
a drive letter--wouldn't that make sense?--but Iâll let someone else take up
that battle. âº
Also, in the following, I would expect cygpath to figure out that I *am not*
specifying a drive letter:
$ cygpath -w ./a:b | od -An -tx1c
41 3a 62 0a
A : b \n
$
But I don't have a dog in this fight, either.
(Replying to a direct reply from Mr. Repin rather than from the list, so hoping
this doesn't break message threading.)
--Ken Nellis
ТÒÐÐ¥&ö&ÆVÒ&W÷'G3¢GG¢òö7wvâæ6öÒ÷&ö&ÆV×2æFÖÀФd¢GG¢òö7wvâæ6öÒöfðФFö7VÖVçFFöã¢GG¢òö7wvâæ6öÒöFö72æFÖÀÐ¥Vç7V'67&&Ræfó¢GG¢òö7wvâæ6öÒöÖÂò7Vç7V'67&&R×6×ÆPÐ Ð
More information about the Cygwin
mailing list