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=HF0CvCkwQXpzsMaeVcnr3A/kmMDVX wx/8TF8GqRSHr3UVxhyb34I+sH5jY6MH+56abFxJxYVnhfgiiKUrJS51/ppzA7pz gYe1yuqRDva4RaK+OgK77u9Q5zzTLxdrDczssO5scY2VRWQjZ6QtuzOZGKfX7DfT T8Czll7yp79/SY= 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=I7ECA+eSURi7/Y6tQxHoSCeqRyw=; b=Cfv peyDyaXTmEOu+xESD1qyD66BYygr3qSJ6M/dRdBy8sn9JIPgq+UJVvsPDXsbW58M jL4uExOhJslnDLakErPngZ+ORM374xXVlTl17cJfoC9tJnIAZsm/+XrwMCnGLT6G +eecOtSPVo+DCgSrSC4gUbNcJ2eZCLODr/uS95Lg= 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=3.0 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,GIT_PATCH_2,KHOP_DYNAMIC,RCVD_IN_DNSWL_LOW,SPAM_URI,SPF_PASS autolearn=no version=3.3.1 spammy=sk:unsubsc, UD:problems.html, Stuff, unsubscribesimple X-HELO: mx0a-00176a03.pphosted.com From: "Garber, Dave (BHGE, Non-GE)" To: Achim Gratz , "cygwin AT cygwin DOT com" Subject: RE: EXT: Re: cygpath -u converts quoted UNC paths to local Date: Wed, 3 Apr 2019 17:42:22 +0000 Message-ID: References: <209675900 DOT 20190403192000 AT yandex DOT ru> <875zrvm2sw DOT fsf AT Rainer DOT invalid> In-Reply-To: <875zrvm2sw.fsf@Rainer.invalid> x-dg-rorf: x-ms-exchange-purlcount: 5 received-spf: None (protection.outlook.com: bhge.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x33Hgi6E023400 Not completely the shell. From a Windows command prompt: c:\Apps\cygwin64\bin\cygpath.exe -u \\123.456.789.321\wwwroot\ccenter\bin\online.sh //123.456.789.321/wwwroot/ccenter/bin/online.sh c:\Apps\cygwin64\bin\cygpath.exe -u "\\123.456.789.321\wwwroot\ccenter\bin\online.sh" /cygdrive/c/123.456.789.321/wwwroot/ccenter/bin/online.sh c:\Apps\cygwin64\bin\cygpath.exe -u "\\\123.456.789.321\wwwroot\ccenter\bin\online.sh" //123.456.789.321/wwwroot/ccenter/bin/online.sh c:\Apps\cygwin64\bin\cygpath.exe -u "\\\\123.456.789.321\wwwroot\ccenter\bin\online.sh" //123.456.789.321/wwwroot/ccenter/bin/online.sh Looks like cygpath is doing something different when the argument is enclosed in quotes (same behavior if single-quote ' is used). > -----Original Message----- > From: cygwin-owner AT cygwin DOT com On Behalf > Of Achim Gratz > Sent: Wednesday, April 03, 2019 1:12 PM > To: cygwin AT cygwin DOT com > Subject: EXT: Re: cygpath -u converts quoted UNC paths to local > > Andrey Repin writes: > > This can be considered "working by design", but it really imposes some > > serious restrictions on interoperability with Cygwin, that I think can be > avoided. > > But cygpath never sees the quotes, so whatever is done to the path that it > gets is actually the work of your shell. In other words, you need to shell- > quote the backslashes as appropriate for your shell. > > > Regards, > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk > Blofeld]>+ > > DIY Stuff: > http://Synth.Stromeko.net/DIY.html > > -- > 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 -- 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