|
There is a "true" command that does nothing except set the exit code. So you could do:
while true ; do
done
to have an infinite loop. The bourne shell also has a ":" command that does nothing. It is built-in to the shell so it is faster that "true" which is external. So a second option is:
while : ; do
done
The syntax looks weird, but this is used a lot in sh scripts.
|