From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120609 invoked by alias); 8 Feb 2017 01:00:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 120435 invoked by uid 89); 8 Feb 2017 01:00:21 -0000 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 Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Feb 2017 01:00:19 +0000 Received: from [192.168.1.100] ([174.0.238.184]) by shaw.ca with SMTP id bGcDcOEAgVQuxbGcEcWiE2; Tue, 07 Feb 2017 18:00:10 -0700 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> To: cygwin@cygwin.com From: Brian Inglis Reply-To: Brian.Inglis@SystematicSw.ab.ca Message-ID: <9971ac1b-f129-fd33-c241-fae317497ec9@SystematicSw.ab.ca> Date: Wed, 08 Feb 2017 01:00:00 -0000 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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfOepis5kwTJY814zJIKh/syxOMSeU5PrZSrHZreHX56o4ZyPY92t+0SWwofyHwtCZlSoBijHtmRgYIceRieATfbEEJje8n6zgZ/uhoU2Ihjpakvdp6sb xWn6oRWrh8ymHByRSiY1TJoZzU+Z1q0n29oGeGb0N+HgOEo6y3Fv0z0TFnzCj0oEMK1YCddiHhc7uQ== X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00102.txt.bz2 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