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
#!/bin/sh at_term() { echo 'Terminated.' exit 0 } trap at_term TERM echo $$ while true; do sleep 20 & wait $! done