Different symlink resolution in native console vs. terminal
Andrey Repin
anrdaemon@yandex.ru
Wed Mar 10 22:51:58 GMT 2021
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...
More information about the Cygwin
mailing list