From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55272 invoked by alias); 4 Apr 2019 07:50:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 55031 invoked by uid 89); 4 Apr 2019 07:50:08 -0000 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 Received: from forward102p.mail.yandex.net (HELO forward102p.mail.yandex.net) (77.88.28.102) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Apr 2019 07:50:05 +0000 Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 426091D413C9 for ; Thu, 4 Apr 2019 10:50:02 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CT94IgHtyQ-o2ReIL91; Thu, 04 Apr 2019 10:50:02 +0300 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 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id JsJdaUd33W-o1waRddX; Thu, 04 Apr 2019 10:50:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 04 Apr 2019 07:49:50 -0000 Date: Thu, 04 Apr 2019 07:50:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1769674219.20190404104950@yandex.ru> To: Corinna Vinschen , cygwin@cygwin.com Subject: Re: cygpath -u converts quoted UNC paths to local In-Reply-To: <20190403163147.GG3337@calimero.vinschen.de> References: <209675900.20190403192000@yandex.ru> <20190403163147.GG3337@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00028.txt.bz2 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