shell实现死循环

参考自http://codingstandards.iteye.com/blog/780524

1.while true
do
command;
done
2.while :
do
command;
done
3.while [1]
do
command;
done
4.while [0]
do
command
done
5.while 条件
do
command;
done

 

posted @ 2014-10-29 18:19  Yrpen  阅读(8047)  评论(0编辑  收藏  举报