I wanted to make my shell script infinitely infinite
If your system supports it, use:
sleep infinity
If your system does not support it, use sleepat large intervals:
while :; do sleep 86400; done
Note:
while : while true / fork, , true ( ).
, .
:
shell script?
... while bash :
while list-1; do list-2; done
list-2, while.
, noop (:) - , list-2.
: :
: [arguments]
No effect; the command does nothing beyond expanding arguments and performing any
specified redirections. A zero exit code is returned.