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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=cM6wQrTvlE9qekAM 7uP2l8fsJcDv8Glejf0dS/QRcXFcmOLe8xQr0SJE96cxjbVzbS2xiVIN1uwrIxvi fbJzb6RkVJaYIcYS9piKXcsuD9CEo2ZBmjw0j0ZUdFPgVc7H0iF5ECYPeJtQKjbL YY2zyRRhlSpI5Ipx+k6CtdjVL6A= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=oE6upHR8Wb/+T5GaK72NZ8 CM7kQ=; b=XuLO7N/dmOomncTMVWny6Hjl7ZAuxG/NCk5KHEAJ1sLQDEBsXthLys UpZGRYXexn1JNN0Ibyr01/H2xfOlPjlivH7YQiCO717/XSRU+UueI4cziwUrYOwI uEZuBRtVSNXgBHllQf34kh45JJRPY/uLoaYBqKfMzhUho4Szc5JPA= 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-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=HX-Priority:Normal, H*x:Bat!, CMD, H*UA:Bat! X-HELO: forward102p.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554364202; bh=X/J/mYZkDFZBN6m6hnd/OPL+a6sF/EYmdUXeTQ/0RzI=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=TPtdPKknmPwBmf6JE3M+N/VKs2hBAR2Rvv2Xmhb1BSZVm6t49FgrVOrxMekXQxr7V t2BZEtXlZHviKvQ+DFjc+bxUAgHmk688ihhqi5tIRd8/eqKO5OEMcTQFYrbnw9BSiQ c7ZYKdkuG7m5hbU3P87zHShhZA82W8Xaskm0iG9Q= Authentication-Results: mxback5g.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Thu, 4 Apr 2019 10:49:50 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1769674219.20190404104950@yandex.ru> To: Corinna Vinschen , cygwin AT cygwin DOT com Subject: Re: cygpath -u converts quoted UNC paths to local In-Reply-To: <20190403163147.GG3337@calimero.vinschen.de> References: <209675900 DOT 20190403192000 AT yandex DOT ru> <20190403163147 DOT GG3337 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Corinna Vinschen! > On Apr 3 19:20, Andrey Repin wrote: >> Greetings, All! >> >> This can be considered "working by design", but it really imposes some serious >> restrictions on interoperability with Cygwin, that I think can be avoided. >> >> ... >> >> After some further testing, this seems to be affecting IP-based UNC paths >> only. >> >> The essence is this: >> >> $ dir "\\192.168.1.5\wwwroot\ccenter\bin\online.sh" >> 26.10.2018 18:16 431 online.sh >> >> $ cygpath -u \\192.168.1.5\wwwroot\ccenter\bin\online.sh >> //192.168.1.5/wwwroot/ccenter/bin/online.sh >> >> $ cygpath -u "\\192.168.1.5\wwwroot\ccenter\bin\online.sh" >> /192.168.1.5/wwwroot/ccenter/bin/online.sh > This shows that it's not cygpath. It's the quoting, thus the shell > mangles the path. Oh, sorry, stupid habit of mine. Yes, in Windows convention, shell (CMD) does not perform unquoting. This makes it impossible to reliable pass parameters to cygpath. -- With best regards, Andrey Repin Thursday, April 4, 2019 10:48:12 Sorry for my terrible english... -- 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