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
时间: 2024-11-16 15:38:08