读书人

unix shell中点儿的意思。解决方法

发布时间: 2012-02-12 17:16:34 作者: rapoo

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.

读书人网 >UNIXLINUX

热点推荐