www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/31/04:58:52

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:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=oWyzib+hv00lmTQk5chbH6B5zN/Uf1L9+cVkUDRyMmIh88w5SJ5j/
65XIu06DY0KbDz+Nt0hTiePJg/2/KywDa5H7aJ4jgtDRb/7HqS71f6GvZKDCqa0a
gBEyctDIL/clYpd53LRiZP/I2P7jcBJilOgT+S3uNeZ6QuSscU2U4g=
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:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=LhioF+SOoCCkOQDShFPnDIarOSI=; b=QaYJ2GqYSqdydq6SGgoK/nQ8Pvdz
RHxp8N59lSnd7t1QGsJBuLLs0hqTUiEMCk946Y87v2LdkRxMwn5j3A8nxtJpGbZA
V0dfmFkUmjOq5gt7G1DL9cSSmZOyMxb3KeIqnmCEmQhmMPvdBsNPnFnbw9gqZlkP
dJ9et+Hcn0yqGPI=
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=-101.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=steven, penny, Steven, sk:cygwin_
X-HELO: mout.kundenserver.de
Date: Fri, 31 Aug 2018 10:57:34 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: error in "cygpath" behavior
Message-ID: <20180831085734.GF6350@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5b88c605 DOT 1c69fb81 DOT f383 DOT a0b6 AT mx DOT google DOT com>
MIME-Version: 1.0
In-Reply-To: <5b88c605.1c69fb81.f383.a0b6@mx.google.com>
User-Agent: Mutt/1.9.2 (2017-12-15)

--hD6P3ib1XCFtz2ni
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 30 21:37, Steven Penny wrote:
> It is my understanding that given relative input, "cygpath" shall produce
> relative output unless given "-a" option. However I noticed a discrepancy=
. These
> are all correct:
>=20
>    $ cygpath .
>    .
>=20
>    $ cygpath ..
>    ..
>=20
>    $ cygpath -w .
>    .
>=20
> This is not:
>=20
>    $ cygpath -w ..
>    C:\cygwin64\home\

Long-standing behaviour.  ".." in Cygwin and ".." in Windows can totally
disagree.  The path is always convert to absolute at this point in favor
of correct output.  There's also the additional restriction (though
not in this case) that relative Windows paths must not be longer than
MAX_PATH (260) chars.

I'm certainly open to patches to the underlying cygwin_conv_path
function to change the Windows path to relative if possible.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--hD6P3ib1XCFtz2ni
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAluJAv4ACgkQ9TYGna5E
T6D90RAAhS4veTlGpLfvb6WVxZMoW9vXJFQFXVsBZ/Ed5eXlJjQIR8DBfTroQpTr
gE98XEXxChumLatztQ8hTHOx8OKS/9IP1J3tCNv2Y/bC9CxSrwYiYnbz2KmocngU
ATCg2KlRXCM6lJ8/1gMnMA+joW7k///MEl9mUf4bprLW701iQdrFOEw4wumyi4Yx
n78kFBLcdUvsEpYdJKrFq/nAEDPCYvU27PDkoAWyeEOQSRmDLq2i7ASqNcqzByEu
bLB0+RC2N0TJS5td6z4JopgUeEy7aCnxFWWtFXslxeunB0nb4yHhGVKZzi+qj/EK
43OOdo7/k2mq4wCK3h3BQyZBEcSHyRQ1FokJ+LbYvPrvU544rk1nXFE5QguewxxN
H4tRSv0nk9NuYCd2bNRXxmE2eaUN8IzY7uUZsayRYK7hoSnUmfqxlSmZPrQ0pn2k
h0WIuQD6IMVrVBzJnpsV2nMFNXbsTbRXPAE7eEUAEVgePMZidfUfgN7NoPSVH0mp
RuzB7HJGUi6uoFiETyx4AORwyfueWANVk3juCNDeSWWxO1FFQ4wdGen/O6IsoO8O
TGXvIWF4OwYEQ+qAX9TyVYjqY8ebLa09fSDRDiz6lmpZZZ5w2v75DAYoGQK2G5Af
nEnU6rKWn2vwCD7iPqCCDIywypxK1OnMU/nj8kReuydPo0wlKN4=
=eB4H
-----END PGP SIGNATURE-----

--hD6P3ib1XCFtz2ni--

- Raw text -


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