关于字符串比较,请帮忙解释一下:

关于字符串比较,请帮忙解释一下:

oni@oniboy:~$ if [ $TEMP=inetnum ]; then echo YES; fi
YES
oni@oniboy:~$ if [ $TEMP=inetnu ]; then echo YES; fi
YES
oni@oniboy:~$ if [ $TEMP=inetn ]; then echo YES; fi
YES


这是为什么呢?
bash
Ubuntu5.04      
明白了。应该这样写:(注意空格)
oni@oniboy:~$  if [ $TEMP = inetnum ]; then echo YES; fi
YES
oni@oniboy:~$  if [ $TEMP = inetnu ]; then echo YES; fi
oni@oniboy:~$  if [ $TEMP = inetn ]; then echo YES; fi