.sh 文件中执行错误 发现 ubuntu 模式使用的是 dash 模式,如果不想报错使用 bash 模式 可使用命令 bash xxx.sh 或者 将脚本第一行改为 #!/bin/bash,执行./example.sh也可以 相关文章: 2021-11-06 2022-12-23 2021-08-27 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23