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: List-Subscribe: List-Archive: List-Post: List-Help: , 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)" To: "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> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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