public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: Dan Levi <dlevi@tibco.com>, cygwin@cygwin.com
Subject: Re: Physical path resolution does not handle parent junction points
Date: Thu, 29 Aug 2019 19:20:00 -0000	[thread overview]
Message-ID: <46135562.20190829221852@yandex.ru> (raw)
In-Reply-To: <CA+-+cpHkFnqe5byjyWQauDqrZfXMJeYqSgphLOxc+W5Lm3XUGw@mail.gmail.com>

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

      reply	other threads:[~2019-08-29 19:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-29 19:08 Dan Levi
2019-08-29 19:20 ` Andrey Repin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46135562.20190829221852@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=dlevi@tibco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).