The until loop
until <LIST1> ; do <LIST2> done
The until-loop is relatively simple in what it does: it executes the command list
<LIST1> and if the exit code of it was not 0 (FALSE) it executes
<LIST2>. This happens again and again until
<LIST1> returns TRUE.
This is exactly the opposite of the while loop.
Like all loops (both
until), this loop can be
- terminated (broken) by the
breakcommand, optionally as
break Nto break
Nlevels of nested loops
- forced to immediately do the next iteration using the
continuecommand, optionally as
continue Nanalog to
The return status is the one of the last command executed in
TRUE) if none was executed.
- Internal: The while loop