shell 的 while无限循环Command not found

#! /bin/bash
while 1
do 
  echo "sdsd"
done
为什么运行的时候出现错误呢,1:Command not found.
首先看一下 你的系统是支持什么shell,比如说 支持 ksh,你这样编译你的程序:ksh xxx.sh 这样就能通过了
while true 
Copyright © 2007-2012 www.chuibin.com 六维论文网 版权所有