小编Ian*_*ako的帖子

Windows 中 git-bash.exe 和 sh.exe 有什么区别?

我想将 git bash 集成到 IntelliJ 中,因此我将默认终端路径更改为C:\Program Files\Git\bin\sh.exe. 一段时间后,我注意到有些命令不起作用,例如:

sh.exe

$ ll                                                                                                                    
bash: ll: command not found
Run Code Online (Sandbox Code Playgroud)

还有一些程序无法运行。我正在使用MQTT CLI,下载了它,PATH正确配置了变量,但该命令mqtt仅在git-bash.exe.

sh.exe

$ mqtt
bash: mqtt: command not found
Run Code Online (Sandbox Code Playgroud)

git-bash.exe

$ mqtt

Usage:  mqtt [-hV] { pub | sub | shell }

MQTT Command Line Interpreter.

Options:
  -h, --help      Show this help message and exit.
  -V, --version   Print version information and exit.

Commands:
  pub, publish    Publish a message to a list of topics …
Run Code Online (Sandbox Code Playgroud)

windows bash command-line git-bash

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

bash ×1

command-line ×1

git-bash ×1

windows ×1