X-Recipient: archive-cygwin@delorie.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:subject:references:to:from:reply-to:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=lpVWfzeCR4b+OwAL
	pbvUeDPWsfeVsCuan2b4eL3OR2Q1DncmM4kie+5lIfEV6wqS29ouZw+5zJqcSa0T
	HCbpCiByyY0bkIH8jTls+zM/TDgzCIMR/z7BNvXCN/m6qUCH1b55OwrwpjhDUz8N
	9H/pv+PMUHS1B0ELRuOEcXLKWLg=
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:subject:references:to:from:reply-to:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=suYYC5WGt8c7MAOGo/7tCu
	6Zc+0=; b=fQpdbFt6xzVNjJLFYDjzxRvQvRNDSwi6Vd3/eZGMFB9J7NZiSFjLM0
	pfbtUSL3QQKftCw6jcLD309W1PJYJ091ZWP8q3GTlg3a9AUlG00j701yJH+/SPcE
	Fq7oRodPorLb8PrJnrJDXNgiaflDCbkcQgdhhm/I2XXwSUwAfFUI4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=wild, Hx-spam-relays-external:64.59.134.9, H*RU:64.59.134.9, H*r:sk:smtp-ou
X-HELO: smtp-out-no.shaw.ca
X-Authority-Analysis: v=2.2 cv=BNTDlBYG c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=w5aJ8kaLLAry8Qfnm_kA:9 a=QEXdDO2ut3YA:10
Subject: Re: cygpath -w converts relative paths to absolute windows paths
References: <10eb657d-a00b-1609-a9b9-6373092c1ac1@polyhack.io> <357614277.20170207183005@yandex.ru> <eecf1899-0aa3-6344-b88c-e5fe9e01bc90@towo.net>
To: cygwin@cygwin.com
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Reply-To: Brian.Inglis@SystematicSw.ab.ca
Message-ID: <9971ac1b-f129-fd33-c241-fae317497ec9@SystematicSw.ab.ca>
Date: Tue, 7 Feb 2017 18:00:09 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <eecf1899-0aa3-6344-b88c-e5fe9e01bc90@towo.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4wfOepis5kwTJY814zJIKh/syxOMSeU5PrZSrHZreHX56o4ZyPY92t+0SWwofyHwtCZlSoBijHtmRgYIceRieATfbEEJje8n6zgZ/uhoU2Ihjpakvdp6sb xWn6oRWrh8ymHByRSiY1TJoZzU+Z1q0n29oGeGb0N+HgOEo6y3Fv0z0TFnzCj0oEMK1YCddiHhc7uQ==
X-IsSubscribed: yes

On 2017-02-07 16:34, Thomas Wolff wrote:
> Am 07.02.2017 um 16:30 schrieb Andrey Repin:
>> Greetings, Roger Qiu!
>>> I've found that `cygpath --windows '../` will give back an
>>> absolute windows path.
>>> ...
>> ".." is a special path, that can't be safely converted.
> How is the special meaning of ".." so much different in Windows than
> in Cygwin/Linux/POSIX that it could not be mapped?
> Things like dir .., cd .., type ..\sub\file all work comparably.

Think the problem is tracking logical directory paths following 
symlinks makes it difficult to reconstruct a relative Windows 
directory path - I like and use symlinks a lot as command line 
accessible shortcuts to directories spread all over the place 
- and shells that only track physical directory paths used to 
drive me wild, as cd dir followed by cd .. left me off in the 
wild.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

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

