shell脚本是否可以测试它是否通过执行source?也就是说,例如,
source
$ source myscript.sh $ ./myscript.sh
myscript.sh可以区分这些不同的shell环境吗?
bash shell
bash ×1
shell ×1