【发布时间】:2016-12-19 15:07:09
【问题描述】:
随着 2016 年夏季的 Windows 10 周年更新,可以在“轻量级”虚拟化子系统 Windows Subsystem for Linux (WSL) 中运行 ubuntu 二进制文件。 p>
不幸的是,启动 C:\Windows\System32\bash.exe,另一个 bash ELF 二进制文件会在 WSL 中启动一个进程,您无法从中逃脱!您只能启动其他 ELF 二进制文件。
那么如何从 Windows Bash 执行 *.exe 文件?[1]
[1] 在Microsoft's "official" GH support repo 中也提出了问题。
【问题讨论】:
-
另请参阅 Bash on Windows - alias for exe files 以了解避免在 shell 脚本中添加显式
.exe扩展的要求。
标签: linux windows bash ubuntu windows-subsystem-for-linux