shell 死循环 endless loop
1:
#!/bin/bash
for ((;;));do
echo 'endless loop'
sleep 2
done
2:
#!/bin/env sh
while true;do
echo 'endless loop'
sleep 2
done
3:
#!/bin/env bash
until false;do
echo 'endless loop'
sleep 2
done