Sorry about the earlier typos > (and, hence, I suppose for the purposes of the OP).
and, hence, I suppose, *would work* for the purposes of the OP. > Since realpath is supposed to resolve all symlinks, I meant by default (the -P behavior). If -s was asked, then the output would be corect. Anton Lavrentiev Contractor NIH/NLM/NCBI > -----Original Message----- > From: Cygwin <cygwin-bounces+lavr=ncbi.nlm.nih....@cygwin.com> On Behalf Of > Lavrentiev, > Anton (NIH/NLM/NCBI) [C] via Cygwin > Sent: Monday, December 12, 2022 9:53 AM > To: cygwin@cygwin.com; Frank Redeker <frank.rede...@razorcat.com> > Cc: Corinna Vinschen <corinna-cyg...@cygwin.com> > Subject: RE: [EXTERNAL] Re: Strange behavior when executing programs > > > 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 > > > > -- > Problem reports: > https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcygwin.com%2Fproblems.ht > ml&data=05%7C01%7Clavr%40ncbi.nlm.nih.gov%7Cd8d314261166420bae3708dadc50a687%7C14b7757 > 8977342d58507251ca2dc2b06%7C0%7C0%7C638064536187844564%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4 > wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FuakF1gx > ayFddTTMMTvLyBJajHV6CuHlnjQg7AWYGsU%3D&reserved=0 > FAQ: > https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcygwin.com%2Ffaq%2F& > data=05%7C01%7Clavr%40ncbi.nlm.nih.gov%7Cd8d314261166420bae3708dadc50a687%7C14b77578977342 > d58507251ca2dc2b06%7C0%7C0%7C638064536188000791%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMD > AiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ImlAyT9NAJ7Nj9c > %2BhE2MO96kv52TUpROkVR9Fy%2B79FA%3D&reserved=0 > Documentation: > https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcygwin.com%2Fdocs.html&a > mp;data=05%7C01%7Clavr%40ncbi.nlm.nih.gov%7Cd8d314261166420bae3708dadc50a687%7C14b77578977 > 342d58507251ca2dc2b06%7C0%7C0%7C638064536188000791%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjA > wMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7Cl2FZK52MSG > InyHOVhLuMhc9DleUzqzwyrO2KA8ehc%3D&reserved=0 > Unsubscribe info: > https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcygwin.com%2Fml%2F%23uns > ubscribe- > simple&data=05%7C01%7Clavr%40ncbi.nlm.nih.gov%7Cd8d314261166420bae3708dadc50a687%7C14b > 77578977342d58507251ca2dc2b06%7C0%7C0%7C638064536188000791%7CUnknown%7CTWFpbGZsb3d8eyJWIjo > iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=n9Vb > 3KyRegZz0w7KUVXBRINFFyH1ggWal%2BLvWQUzNqM%3D&reserved=0 > CAUTION: This email originated from outside of the organization. Do not click > links or > open attachments unless you recognize the sender and are confident the > content is safe. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple