如果我想执行一个没有设置执行权限的 bash 脚本,我可以这样做:
bash script.sh
bash如果脚本不可执行并且我不知道正确的解释器,我应该使用什么来代替?是否有一个命令可以从 shebang 行查找解释器并用它执行脚本?
bash
command-line scripts executable shebang
command-line ×1
executable ×1
scripts ×1
shebang ×1