📌  相关文章
📜  因为您永远无法完全预测您的特定 zsh 将在哪个环境中启动,所以最好在脚本开头使用 emulate 命令重置选项:- Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:07.506000             🧑  作者: Mango

代码示例1
emulate -LR zsh

After the emulate command, you can explicitly set the shell 
options your script requires.

The emulate command also provides a bash emulation:

emulate -LR bash