在当前环境下读取和执行filename中的命令。
Read and execute commands from the filename argument in the current shell context.
Syntax
. filename [arguments]
source filename [arguments]
点号是source的同义词。
Why this article?
以前只知道,在当前shell环境下导入另一个脚本中的变量或者函数使用命令:
. filename
后来看到有些地方用到命令:
source filename
它们的意思和效果是完全一样的。