* Physical path resolution does not handle parent junction points
@ 2019-08-29 19:08 Dan Levi
2019-08-29 19:20 ` Andrey Repin
0 siblings, 1 reply; 2+ messages in thread
From: Dan Levi @ 2019-08-29 19:08 UTC (permalink / raw)
To: cygwin
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.
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Physical path resolution does not handle parent junction points
2019-08-29 19:08 Physical path resolution does not handle parent junction points Dan Levi
@ 2019-08-29 19:20 ` Andrey Repin
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Repin @ 2019-08-29 19:20 UTC (permalink / raw)
To: Dan Levi, cygwin
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-29 19:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-29 19:08 Physical path resolution does not handle parent junction points Dan Levi
2019-08-29 19:20 ` Andrey Repin
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).