public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Different symlink resolution in native console vs. terminal
@ 2021-03-10 22:51 Andrey Repin
  2021-03-16 13:34 ` L A Walsh
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Repin @ 2021-03-10 22:51 UTC (permalink / raw)
  To: All

Greetings, All!

Win 7 Pro fully upgraded.

Running `pwd -P` or `readlink -e .` in a specific directory from native
terminal provide unresolved answers.

The directory $HOME/Documents/EVE is a symlink pointing to $HOME\Documents\Games\EVE.

When running either command inside the directory from native terminal, the
result is literally /home/Documents/EVE, but when running the same command
from mintty inside same directory, the results may vary.

$HOME/Documents/EVE or $HOME/Documents/Games/EVE (which is expected answer).
It also seems, there are results difference between `bash -l` `and bash -i`
and `pwd -P` and `readlink -e .`.
Generally, "pwd" is more correct.


-- 
With best regards,
Andrey Repin
Thursday, March 11, 2021 1:33:36

Sorry for my terrible english...


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-19 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 22:51 Different symlink resolution in native console vs. terminal Andrey Repin
2021-03-16 13:34 ` L A Walsh
2021-03-19 13:29   ` 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).