This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Physical path resolution does not handle parent junction points
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Dan Levi <dlevi at tibco dot com>, cygwin at cygwin dot com
- Date: Thu, 29 Aug 2019 22:18:52 +0300
- Subject: Re: Physical path resolution does not handle parent junction points
- References: <CA+-+cpHkFnqe5byjyWQauDqrZfXMJeYqSgphLOxc+W5Lm3XUGw@mail.gmail.com>
- Reply-to: cygwin at cygwin dot 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