[EXTERNAL] Re: Strange behavior when executing programs
Lavrentiev, Anton (NIH/NLM/NCBI) [C]
lavr@ncbi.nlm.nih.gov
Mon Dec 12 14:52:31 GMT 2022
> Let's consider this problem again, but I don't see a quick and easy
> solution.
$ realpath /cygdrive/s/ado/msadox.dll
/cygdrive/s/ado/msadox.dll <====== IMO the problem is actually here
$ realpath msadox.dll
/cygdrive/c/Program Files/Common Files/System/ado/msadox.dll
Both paths should start with /cygdrive/c, and then those would be identical
(and, hence, I suppose for the purposes of the OP).
A substed drive is nothing BUT a symlink, should be treated no differently than
/cygdrive/s -> /cygdrive/c/Program Files/Common Files/System
Because even Windows shows you the same:
S:\: => C:\Program Files\Common Files\System
Since realpath is supposed to resolve all symlinks, it should never show any
/cygdrive/s in the resultant path.
My $.02,
Anton Lavrentiev
Contractor NIH/NLM/NCBI
More information about the Cygwin
mailing list