The original loop is:
while (time() != timeout) {;}
The fixed loop is:
while (time() < timeout) {;}
I see. I did not realize SECONDS was a built in bash variable.
I see. I did not realize SECONDS was a built in bash variable.