delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/04/03/13:42:45

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: <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-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)" <dave DOT garber1 AT bhge DOT com>
To: Achim Gratz <Stromeko AT nexgo DOT de>, "cygwin AT cygwin DOT com" <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: <DM5P101MB0153C5831550EF2D74018447B5570@DM5P101MB0153.NAMP101.PROD.OUTLOOK.COM>
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
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
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 <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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019