Windows PATH to posix path conversion in bash

前端 未结 6 1551
北荒
北荒 2020-12-04 16:35

How can I convert a Windows dir path (say c:/libs/Qt-static) to the correct POSIX dir path (/c/libs/Qt-static) by

6条回答
  •  甜味超标
    2020-12-04 17:02

    The "correct" way in MSYS is:

    $ MSYS_NO_PATHCONV=1  taskkill /F /T /IM ssh-agent.exe
    

    This avoids having to manually translate slashes. It simply de-activates the path conversion.

提交回复
热议问题