delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/07/20:00:58

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: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 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-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 AT polyhack DOT io> <357614277 DOT 20170207183005 AT yandex DOT ru> <eecf1899-0aa3-6344-b88c-e5fe9e01bc90 AT towo DOT net>
To: cygwin AT cygwin DOT com
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT 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>
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

- Raw text -


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