delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/31/18:34:34

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:message-id:date:from:to:subject:references
:content-type; q=dns; s=default; b=Sx0WrRkFvdBVE53Lb15WgZACpIKdX
tRGlWa2Vb3DtwSBpIzFtDH76oMqKkxOd4VYBVHb8IWpTVmgxso7Je1aTGtCj4JDo
ljdgrx0o5XodaJGBmQUDQS+ZK/x7EBlVXu4WycZtBYfyanNAlVVGXOwqPBM3xMnY
sMbrC8kZzATIfU=
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:message-id:date:from:to:subject:references
:content-type; s=default; bh=1L7dALIC3XiDszd0hjEXCAoQ1Y4=; b=kll
0H7I2IeAml+H0tE3vP000y4OwXInZY5UyApQPYQiSIqlYgn8dbCqQ0NS7mN2WYEy
vJbD0V42iDVokqaIR1oFt9cpsB06h+aKvoX7He8ig8RHZ2vjNXat+mVpi4jkXyZq
r6sblrRUioayfafK68TVzlZ7NWD8IlLJh1IqxcZ4=
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=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=dot-dot, dotdot, H*M:1c69fb81, H*M:google
X-HELO: mail-oi0-f48.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:subject:references:user-agent; bh=BoNij8CtBwXLk1rSIvAg5O07wLl8edAwHGUFvHePq7c=; b=l4Rvs1l3JxrSj9j6TSkJveQF3qI18b6j7KgFFmIN0FMqiI54KpBruOgdkMrv0YePWV dVDoAFI6f5cpqEE6GZejxLB2xNvrCeaPBfRtOWbOgwGNS2nugz7s4XXjfhboZtYtNJZj P98vYKRnBpVrGyabrIj8FY/+ooJo2nqVdS7csdkTeuE+PYvzrlNyhHBJ2uyReK07mvMH 9I4zlFVPYv7WkLR0PEAy0OdEiuKXsA+4hZkzB/I3Nme+V8vGPGWrMpC/mvXyypijTZX8 AU1Aj10f9Owd4N/VNtmPBp9z1YIglnu6SyLSoICowGQkUUR4IardeWCFy/Kcsmvaw93p i0ag==
Message-ID: <5b89c269.1c69fb81.84d1a.6f1b@mx.google.com>
Date: Fri, 31 Aug 2018 15:34:17 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: error in "cygpath" behavior
References: <20180831085734 DOT GF6350 AT calimero DOT vinschen DOT de>
User-Agent: Tryst/2.8.0 (cup.github.io/tryst)

On Fri, 31 Aug 2018 10:57:34, Corinna Vinschen wrote:
> 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.

I am not understanding - it appears that "dot-dot" (..) is well defined by
POSIX:

> The special filename dot-dot shall refer to the parent directory of its
> predecessor directory. As a special case, in the root directory, dot-dot may
> refer to the root directory itself.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13

so it would appears that ".." would be an acceptable return value in any case.


--
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