首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

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

2012-02-12 
unix shell中点儿的意思。近日在查看Ubuntu中/etc/init.d/halt脚本时有如下代码:[-f/etc/default/halt]&&./

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.

热点排行