Execute commands as long as a test succeeds.
Synopsis
while TEST-COMMANDS; do COMMANDS; done
Description
Execute COMMANDS repeatedly as long as TEST-COMMANDS returns exit status 0. Runs in the just-bash WASM shell inside SLICC.
Examples
$ i=0; while [ $i -lt 5 ]; do echo $i; i=$((i+1)); done
Print numbers 0 through 4.
See Also
until, for, break, continue