Bash Script奇怪

时间:2015-03-08 10:01:55

标签: bash x11

这段代码会给出什么,这不是真正的错误,但它让我发疯了......

#!/bin/bash 
# This script opens 4 terminal windows.
i="0"

while [ $i -lt 4 ]
do
xterm &
i=$[$i+1]


done
exit 0

这是我运行时得到的......

Ghost abrandt $ ./My4Terminals 
Ghost abrandt $ Warning: Tried to connect to session manager, None of the authentication protocols specified are supported
Warning: Tried to connect to session manager, None of the authentication protocols specified are supported
Warning: Warning: Tried to connect to session manager, None of the authentication protocols specified are supported
Tried to connect to session manager, None of the authentication protocols specified are supported

Ghost abrandt $

1 个答案:

答案 0 :(得分:1)

我想通了,我只需要取消设置会话管理器的选项:

 $ unset SESSION_MANAGER 

现在就像魅力......