delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/21/13:22:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=ie8PnIHr2N52ppruUgrVAZPi3B9EZ
3uMQVYIKAmn4U2aoqROtTbaR3XlYE0oZMOpPVarNxZaY8CHXKR3js3NmQIoUaByp
WMKyJ2DvQm5EhxtQJl0YJF/NdQq+ZvDHMEksmgYm+HjE2E9rPBo1hiNxM2nVPzk0
JcoYbDcdLSYbVg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=V7CzMNS4WAHR/cdqZKPCqd87g58=; b=DN1
Vur0pTXyKPLHaC0NNO1MhCbq5D+HjLpCexaxanvhSCVBdtakL7ZcPC1jonkUchIp
bwj/gkK4eTtVDwIVc4j/LQCOHASW+QD631fD8hYV30rHn+acgOGOrxNJ0zRRhyvw
dbPhJRCA+1VS+Z2kAYeedtN9ydlmUVikRtqef+zk=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,SPF_PASS autolearn=ham version=3.3.2 spammy=dog, replying, wondered, H*f:sk:0D835E9
X-HELO: USA7109MR002.ACS-INC.COM
From: "Nellis, Kenneth (Conduent)" <Kenneth DOT Nellis AT conduent DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: cygpath (reprised)
Date: Tue, 21 Feb 2017 18:22:16 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A704BBEEB6F@USA7109MB022.na.xerox.net>
References: <0D835E9B9CD07F40A48423F80D3B5A704BBEEB39 AT USA7109MB022 DOT na DOT xerox DOT net> <198383594 DOT 20170221210252 AT yandex DOT ru>
In-Reply-To: <198383594.20170221210252@yandex.ru>
MIME-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v1LIMWsS024901

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

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