title: Bash: infinite sleep (infinite blocking)
body: <p>I use <code>startx</code> to start X which will evaluate my <code>.xinitrc</code>. In my <code>.xinitrc</code> I start my window manager using <code>/usr/bin/mywm</code>. Now, if I kill my WM (in order to f.e. test some other WM), X will terminate too because the <code>.xinitrc</code> script reached EOF.
  So I added this at the end of my <code>.xinitrc</code>:</p>
  <pre><code>while true; do sleep 10000; done
  </code></pre>
  <p>This way X won't terminate if I kill my WM. Now my question: how can I do an <strong>infinite sleep</strong> instead of looping sleep? Is there a command which will kinda like freeze the script?</p>