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
What's wrong with your 2nd option but forcing it to read from stdin ? (Requires bash)
stdin
bash
while true; do read done < /dev/stdin
From man bash
man bash
Bash handles several filenames specially when they are used in redirections, as described in the following table: /dev/stdin File descriptor 0 is duplicated.
Bash handles several filenames specially when they are used in redirections, as described in the following table:
/dev/stdin File descriptor 0 is duplicated.