如果我写,
#!/bin/bash echo "foo"
或者
#!/bin/sh echo "foo"
两者产量相同。我见过一些以#!/bin/sh或开头的脚本#!/bin/bash。它们之间有什么区别吗?
#!/bin/sh
#!/bin/bash
bash scripts sh shebang
bash ×1
scripts ×1
sh ×1
shebang ×1