【发布时间】:2017-01-22 10:00:20
【问题描述】:
我在 Windows 上使用 msys2 bash 4.3.26 (i686-pc-msys),最近我发现它破坏了我的 pscp 和 scp (msys1):
当我运行pscp req.py hostname:/home/user/xxx/yyy/:
-
msys会将第二个参数更改为hostname;D:\msys\home\user\xxx\yyy\ - 然后
pscp将报告:ssh_init: Host does not exist - 我的
scp来自msys-1.0(我曾经使用过git-for-windows 1.9)报告ssh: Could not resolve hostnamehostname;d: no address associated with name
这很烦人,我必须打开cmd.exe 才能使用pscp。有什么办法可以防止 MSYS 2 转换特殊参数?
- 我尝试将 arg 包装在
'或"中,但失败了 - http://www.mingw.org/wiki/Posix_path_conversion 没有帮助但令人失望
- 环境:Windows 10 Insider x64 和 msys2 i686
-
msys2同包中的官方scp.exe效果很好
顺便说一句,这个问题只发生在那些不使用 msys2 DLL 的 .exe 文件上。如何检查这种差异?
【问题讨论】: