shell问题集合

1.syntax error near unexpected token `then'

if后要有空格,[] 中括号的开头和结尾要有空格! [ $1-eq"root" ]中括号中的$1和-eq和"root"之间没有空格!

posted @ 2013-06-21 16:09  变异爬行者  阅读(152)  评论(0编辑  收藏  举报