Apr 9, 2021 · Also, in while [ true ], the test checks if true is a non-empty string. It obviously is, so this does work in giving an endless loop. But [ false ] would also be always true, so a test like that is …

Jun 24, 2018 · Stop endless loop .sh script Ask Question Asked 7 years, 5 months ago Modified 7 years, 5 months ago

May 12, 2017 · 6 Your loop is starting an endless number of shells, but one after the other, not in parallel. The first time the loop runs, it runs bash, which starts a new shell and displays the prompt.

Recommended for you
You may also like