我有一些主要使用的 bash 脚本
#!/bin/bash
但我经常遇到一些看起来像
#!/bin/bash -e #!/bin/bash -x #!/bin/bash -ex
等等。
有人可以解释这些shebang选项的含义和好处以及它们是否适用于其他shebang吗?
script bash shell
bash ×1
script ×1
shell ×1