日期:2014-05-16  浏览次数:20657 次

unix shell中点儿的意思。
近日在查看Ubuntu中/etc/init.d/halt脚本时有如下代码:

[   -f   /etc/default/halt   ]   &&   .   /etc/default/halt

.   /lib/lsb/init-functions

请教高手其中的两个点儿到底是什么意思?

------解决方案--------------------
就是执行后面的脚本。作用与source命令相同。

Read and execute commands from filename in the current shell
environment and return the exit status of the last command executed from filename.