<div dir="ltr">Hi,<div>Fixpath does not work with WSL paths; historically it was hard to map them to Windows paths.</div><div><br></div><div>This article suggests that it should be easier now:</div><div><a href="https://www.howtogeek.com/426749/how-to-access-your-linux-wsl-files-in-windows-10/">https://www.howtogeek.com/426749/how-to-access-your-linux-wsl-files-in-windows-10/</a><br></div><div><br></div><div>I suppose you could give it a try if you're interested.</div><div>Regards,</div><div>Daniel</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">czw., 20 paź 2022 o 10:59 Julian Waters <<a href="mailto:tanksherman27@gmail.com">tanksherman27@gmail.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>On Windows MakeBase contains a utility to extract Windows paths from Unix style paths:</div><div><br></div><div># FixPath<br>#<br># On Windows, converts a path from cygwin/unix style (e.g. /bin/foo) into<br># "mixed mode" (e.g. c:/cygwin/bin/foo). On other platforms, return the path<br># unchanged.<br># This also converts a colon-separated list of paths to a semicolon-separated<br># list.<br># This is normally not needed since we use the FIXPATH prefix for command lines,<br># but might be needed in certain circumstances.<br></div><div><br></div><div>According to the documentation it should be able to handle paths like /usr/bin or /bin/xxx, but manually invoking the implementation of this utility from the shell seems to indicate that it can only properly convert full paths that have environment prefixes and so on, with the "true" Unix style paths simply expanding into empty strings:</div><div><br></div><div>Working usage:</div><div><br></div>user@LAPTOP-NEMLU0S6:/mnt/d/eclipse/workspace/hotspot/jdk$ fixpath print /mnt/c/progra~1/mib055~1/2022/commun~1/vc/tools/msvc/1432~1.313/bin/hostx64/x64/cl.exe<div>c:\progra~1\mib055~1\2022\commun~1\vc\tools\msvc\1432~1.313\bin\hostx64\x64\cl.exe</div><div>user@LAPTOP-NEMLU0S6:/mnt/d/eclipse/workspace/hotspot/jdk$<br></div><div><br></div><div>as compared to:</div><div><br></div><div>user@LAPTOP-NEMLU0S6:/mnt/d/eclipse/workspace/hotspot/jdk$ /mnt/d/eclipse/workspace/hotspot/jdk/build/windows-x86_64-server-release/fixpath print /usr/bin/make<br>vertig0@LAPTOP-NEMLU0S6:/mnt/d/eclipse/workspace/hotspot/jdk$<br></div><div><br></div><div>I can't quite tell if this is a subtle bug or if it's working as intended, and the documentation is just a tad outdated/was misinterpreted by me, so I thought I'd raise it on the list just in case (I first caught this while using FixPath on a local branch).</div><div><br></div><div>best regards,</div><div>Julian</div></div>
</blockquote></div>