【发布时间】:2013-08-16 03:27:48
【问题描述】:
与标准默认 bash 相比,我想在 dash shell 上执行一些脚本。这是一个例子(test.sh)
#!/bin/dash
echo $SHELL
echo $0
这次执行给了我
/bin/bash
./test.sh
作为输出。我期待 '/bin/dash' 作为输出。
如果这是错误的,有人可以让我知道我如何在 dash 上实际工作。 谢谢
【问题讨论】:
标签: bash shell dash-shell