关于Bash特定脚本的说明

为了避免自己使用特定bash的脚本被dash错误解析出错。
可以在脚本中指定shell,如下所示:

#!/usr/bin/env bash.

或者

#!/path/to/real/bash.binary

或者

#!/usr/local/bin/bash
Linux dash Shell?

Debian 中/bin/dash是什么?

Dash是Debian Almquist shell的首字母缩写。
它是一个Unix和Linux shell。
dash比bash小得多。
dash启动速度比bash的启动速度快
从Debian Squeeze和Ubuntu 6.10开始,默认shell为dash。

日期:2019-11-20 08:53:09 来源:oir作者:oir