<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>To clarify, you need the added</p>
    <div style="color: #000000;background-color: #ffffff;font-family: Hack,'Droid Sans Mono', 'monospace', monospace, Menlo, Monaco, 'Courier New', monospace;font-weight: normal;font-size: 12px;line-height: 18px;white-space: pre;"><div><span style="color: #000000;">  FIXPATH_ARGS=</span><span style="color: #a31515;">"-e $PATHTOOL -p $WINENV_PREFIX_ARG -r ${WINENV_ROOT//</span><span style="color: #ee0000;">\\</span><span style="color: #a31515;">/</span><span style="color: #ee0000;">\\\\</span><span style="color: #a31515;">}  -t $WINENV_TEMP_DIR -c $CMD -q"</span></div><div><span style="color: #000000;">
</span></div></div>
    <p></p>
    <div class="moz-cite-prefix">to be sure to get the correct behavior.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">/Magnus</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 2022-10-20 17:03, Magnus Ihse Bursie
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:ec9cde06-2428-eea6-fc84-3a9c13cdb48b@oracle.com">The
      fixpath.sh script has two "modes", one in which it tries to
      autodetect it's environment itself, and one in which the
      environment info is fed into it from the caller.
      <br>
      <br>
      The latter method is used in all real use cases when it is used in
      the make files.
      <br>
      <br>
      You are exercising the first case. That is only intended as a
      development tool, and might not work correctly.
      <br>
      <br>
      I think that is the answer to the oddities you are seeing.
      <br>
      <br>
      Look in `spec.gmk` to find how fixpath.sh is really called during
      a makefile execution.
      <br>
      <br>
      /Magnus
      <br>
      <br>
      <br>
      On 2022-10-20 10:58, Julian Waters wrote:
      <br>
      <blockquote type="cite">Hi all,
        <br>
        <br>
        On Windows MakeBase contains a utility to extract Windows paths
        from Unix style paths:
        <br>
        <br>
        # 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>
        <br>
        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:
        <br>
        <br>
        Working usage:
        <br>
        <br>
        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
        <br>
c:\progra~1\mib055~1\2022\commun~1\vc\tools\msvc\1432~1.313\bin\hostx64\x64\cl.exe
        <br>
        user@LAPTOP-NEMLU0S6:/mnt/d/eclipse/workspace/hotspot/jdk$
        <br>
        <br>
        as compared to:
        <br>
        <br>
        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>
        <br>
        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).
        <br>
        <br>
        best regards,
        <br>
        Julian
        <br>
      </blockquote>
    </blockquote>
  </body>
</html>