In Bash, the syntax of the C-like for-loop is:
for (( expr1 ; expr2 ; expr3 )) ; do commands ; done
Can the execution of commands affect the evaluations of the three arithmetic expressions expr1, expr2, and/or expr3, and therefore change the iterations (e.g. the number of iterations)?
Or are the iterations (e.g. the number of iterations) unaffected by execution of commands in each iteration?
the syntax of the C-like for-loop is:
for (( expr1 ; expr2 ; expr3 )) ; do commands ; doneCan the execution of
commandsaffect the evaluations of the three arithmetic expressionsexpr1,expr2, and/orexpr3, and therefore change the iterations (e.g. the number of iterations)?Or are the iterations (e.g. the number of iterations) unaffected by execution of
commandsin each iteration?The other syntax of the for command is:
for name [ [in [words ...] ] ; ] do commands; doneCan execution of
commandsin each iteration affect the iterations (e.g. the number of iterations)?