有几种方法可以执行脚本。我知道的有:
/path/to/script # using the path (absolute or relative) . script # using the . (dot) source script # using the `source` command
有没有其他办法?它们之间有什么区别?在某些情况下,我必须使用一种而不是另一种吗?
executable shell-script
executable ×1
shell-script ×1