【发布时间】:2017-04-19 21:03:06
【问题描述】:
有没有一种简单的方法来确定 bash 是否在 Windows 上运行?运行 uname 会给出不正确的“Linux”。
【问题讨论】:
标签: windows bash windows-subsystem-for-linux
有没有一种简单的方法来确定 bash 是否在 Windows 上运行?运行 uname 会给出不正确的“Linux”。
【问题讨论】:
标签: windows bash windows-subsystem-for-linux
我没有亲自测试过,但if [ -d /mnt/C ] 可能有效。
这可能是一个糟糕的解决方案
【讨论】: