我无法想出正确的分号和/或括号组合.我想这样做,但作为命令行的一行代码:
while [ 1 ] do foo sleep 2 done
bash loops while-loop
bash ×1
loops ×1
while-loop ×1