RED HAT 的SHELL程序居然不认 IF 语句:( ??? 一个极为简单的测试程序: echo "$0 $# $*" if [$# -eq 0]; 1then echo "Name not provided" else echo "Your name is " $1 fi 执行: [oracle@o8i backup]$ bash mypgm1 Flyingcloud mypgm1 1 Flyingcloud mypgm1: [1: command not found Your name is Flyingcloud
WHY??
Re: RED HAT LINUX 的SHELL编程问题
change if [$# -eq 0];1then to: if [ $# -eq 0 ]; then