Implementing infinite wait in shell scripting

前端 未结 7 561
独厮守ぢ
独厮守ぢ 2021-02-05 04:30

This may sound trivial, but I\'m pretty sure this question hasn\'t been asked, or at least I can\'t find it.

I\'m looking for a way to construct an infinite wait

7条回答
  •  粉色の甜心
    2021-02-05 05:31

    If you have GNU coreutils, which accepts floating-point seconds, you can try:

    sleep inf
    

    This should block until the 64-bit timestamp wraparound.

提交回复
热议问题