for和while与until的无限循环总结
for无限循环
for ((i=0;i<1;i+=0))
do
echo "infinite loop"
done
for ((;1;))
do
echo "infinite loop"
done
while的无限循环
while ((1))
do
echo "infinite loop"
done
while true
do
echo "infinite loop"
done
while :
do
echo "infinite loop"
done
until循环
until ((0))
do
echo "inlinite loop"
done
until false
do
echo "inlinite loop"
done
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。