|
发表于 2009-8-11 19:11:13
|
显示全部楼层
第一个点的作用是在当前shell环境下解释执行shell脚本文件,与source命令一样。
具体的帮助如下:
[blabla@blablahost ~]$ help .
.: . filename [arguments]
Read and execute commands from FILENAME and return. The pathnames
in $PATH are used to find the directory containing FILENAME. If any
ARGUMENTS are supplied, they become the positional parameters when
FILENAME is executed.
空格之后的点表示当前目录,./scriptfile 就是指当前目录下的scriptfile。所以这条命令的格式就是标准的上面帮助里写明的“. filename”的格式。
关于执行后立马logout的情况可能是其他的机制起的作用,单从楼主叙述的操作来看没有logout的理由,并且我刚刚在自己的机器上执行了一下,也没有自动logout! |
|