delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/29/15:21:25

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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=ow8Um4RO92H4uI8/
u8fgKZ9jkCt0Qcez6ByPeSW38eMYhhUcHLs5VT5j2NYw9ZBYMD23aOtnPbOnl3hc
12Ks7PwX2tW11qmg8Y7MXUQ5FlNUcK9V+Zg8d3/6LU/ni22Res2uI1iJp1bM9X9v
NMDIoCemGvnyc2+CB0LvSrDuX7s=
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:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=tweFmeUWAdjl+5kcPQaeq5
42cvY=; b=Pna/q+aNyvK6nD4z1YvCsmU3gCWumITJ8qo4F4YrMjxy7qHS/lr+l8
dEwOep1ipVtofdHHisO3q2l2N3H8TTUi5Dyvr8jCNHpSDjAN/gzo6mp8yBW/6Phb
/BGqfSaijoAMvk9d93iDrKm1WWzZIFG3c/kf7lInDJNwWriPIwh20=
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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=H*M:yandex, H*x:Bat!, H*UA:Bat!, H*F:D*ru
X-HELO: forward106p.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1567106402; bh=1X+qKRTo1p6kZP5Z/3kyjuWt4Hwl/6YH+5gob8bG0oI=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=Xn8/QZjJcMKngT5P64jq3YLnmHa7CV0EDRyiUNMs8vsgFnuJvyEnwthB3C0vVolyH imYvemW8qZcseBY7DHdYUZmHWBUMO9Hml6B6cq9ZrQJGA6LHa198jKe/P0MoCLu/37 5v7UaJVOWHbVWOPTmX8Pxh+BBaWkDhiUeg8caA+s=
Authentication-Results: mxback2g.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Thu, 29 Aug 2019 22:18:52 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <46135562.20190829221852@yandex.ru>
To: Dan Levi <dlevi AT tibco DOT com>, cygwin AT cygwin DOT com
Subject: Re: Physical path resolution does not handle parent junction points
In-Reply-To: <CA+-+cpHkFnqe5byjyWQauDqrZfXMJeYqSgphLOxc+W5Lm3XUGw@mail.gmail.com>
References: <CA+-+cpHkFnqe5byjyWQauDqrZfXMJeYqSgphLOxc+W5Lm3XUGw AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Dan Levi!

> Open terminal (as admin):

> [~] $ mkdir -p A/B
> [~] $ ln -s A C
> [~] $ cmd /c "mklink /j D A"
> Junction created for D <<===>> A
> [~] $ (cd C/B ; pwd -P)
> /home/me/A/B
> [~] $ (cd D/B ; pwd -P)
> /home/me/D/B

> The last output should be /home/me/A/B, not /home/me/D/B.

> realpath displays the same behavior.

#  ( cd D/B ; pwd -P; realpath .; realpath $(pwd); readlink -e .; readlink -e $(pwd) )
/c/dev/temp/1/D/B
/c/dev/temp/1/D/B
/c/dev/temp/1/A/B
/c/dev/temp/1/D/B
/c/dev/temp/1/A/B


-- 
With best regards,
Andrey Repin
Thursday, August 29, 2019 22:16:35

Sorry for my terrible english...


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