each
A command of the separate bcma command line; see Commands for other chip families.
Execute a series of commands in a loop.
each <V>=<A1>,...,<An> '<command>' ...
{<V1>:...:<Vm>}={<A1>:...:<M1>},...,{<An>:...:<Mn>} '<command>' ...
Built-in help
Iterate a series of commands, each time setting variable <V> or
a group of variables <V1>:...:<Vm> to the loop value(s).
Each argument is a complete command, so if it contains
more than one word, it must be placed in quotes.
Use single quotes to avoid expanding the environment variable
before executing the loop.
This loop command accepts a list of variable values by specifying
commas (,) to separate values.
For multiple variables support, braces ({}) must be used to group each
set of variables and values for each round, and a colon (:) must
be used to separate variables and values within each of these group.
If one of the command iterations fails, the execution will stop,
unless the environment variable '_looperror' is set to 0.
Built-in examples
port=1,4,5,7 'echo $port'
color=red,blue,green 'echo $color'
{port:color}={1:red},{4:blue},{7:green} 'echo $port $color'