相关疑难解决方法(0)

有什么理由让shebang指向/bin/sh而不是/bin/bash?

在我见过的大多数 shell 脚本中(除了我自己没有写的脚本),我注意到 shebang 设置为#!/bin/sh. 这在旧脚本上并没有让我感到惊讶,但在相当新的脚本上也是如此。

是否有任何理由宁愿/bin/sh/bin/bash,因为bash几乎是无处不在的,而且往往默认情况下,许多Linux和BSD的机器回去了十多年?

shell bash history shebang

54
推荐指数
5
解决办法
6513
查看次数

标签 统计

bash ×1

history ×1

shebang ×1

shell ×1