How to prevent MSYS to convert the file path for an external program

前端 未结 3 1732
难免孤独
难免孤独 2021-01-12 13:57

I\'m porting a Linux script to Windows & MinGW, which accesses the Android phone through ADB.

Sometime I need to pass the Android\'s file path as ADB command lin

3条回答
  •  再見小時候
    2021-01-12 14:35

    Please, can we get the terminology right here? MinGW does no path translation, such as you describe; it is the MSYS build environment, provided by MinGW.org as a companion to MinGW, which does this, so I guess you are actually using the version of MSYS supplied with Git for Windows.

    I'm pleased that you have found the magic bullet which works in your case, but please be aware that there are some corner cases in which this "double slash" trick doesn't suffice; if you run into one of these, you may wish to consider Cygwin as an alternative hosting shell on Windows.

提交回复
热议问题