If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:for (bashcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> for (bashcmd) @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Info
  
Name-Collision - multiple objects in this wiki use the name for!
for (bashcmd) Execute commands for each member in a list or arithmetic for loop.
for (bbcmd) Execute commands in the loop for each member of a list or expression.

Bash-Command

Goto:   Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

Excerpt from:   Bash source   >>   for command

Possible #if / #endif blocks are compile options. There is no mechanism yet on BoxMatrix to detect which of these are set per model.

for NAME [in WORDS ... ] ; do COMMANDS; done

Execute commands for each member in a list.

The `for' loop executes a sequence of commands for each member in a
list of items.  If `in WORDS ...;' is not present, then `in '$@ is
assumed.  For each element in WORDS, NAME is set to that element, and
the COMMANDS are executed.

Exit Status:
Returns the status of the last command executed.

Excerpt from:   Bash source   >>   for command

Possible #if / #endif blocks are compile options. There is no mechanism yet on BoxMatrix to detect which of these are set per model.

for (( exp1; exp2; exp3 )); do COMMANDS; done

Arithmetic for loop.

Equivalent to
    (( EXP1 ))
    while (( EXP2 )); do
        COMMANDS
        (( EXP3 ))
    done
EXP1, EXP2, and EXP3 are arithmetic expressions.  If any expression is
omitted, it behaves as if it evaluates to 1.

Exit Status:
Returns the status of the last command executed.

Excerpt from:   bashref.info   >>   Looping Constructs   >>   for command

The syntax of the 'for' command is:

     for NAME [ [in [WORDS ...] ] ; ] do COMMANDS; done

Expand WORDS, and execute COMMANDS once for each member in the
resultant list, with NAME bound to the current member.  If 'in
WORDS' is not present, the 'for' command executes the COMMANDS once
for each positional parameter that is set, as if 'in '$@ had been
specified (*note Special Parameters::).  The return status is the
exit status of the last command that executes.  If there are no
items in the expansion of WORDS, no commands are executed, and the
return status is zero.

An alternate form of the 'for' command is also supported:

     for (( EXPR1 ; EXPR2 ; EXPR3 )) ; do COMMANDS ; done

First, the arithmetic expression EXPR1 is evaluated according to
the rules described below (*note Shell Arithmetic::).  The
arithmetic expression EXPR2 is then evaluated repeatedly until it
evaluates to zero.  Each time EXPR2 evaluates to a non-zero value,
COMMANDS are executed and the arithmetic expression EXPR3 is
evaluated.  If any expression is omitted, it behaves as if it
evaluates to 1.  The return value is the exit status of the last
command in COMMANDS that is executed, or false if any of the
expressions is invalid.

   The 'break' and 'continue' builtins (*note Bourne Shell Builtins::)
may be used to control loop execution.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-12-21 07:44 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
0 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-12-21 05:44 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 6591 Cable (atom) 7.04 - 8.00 <bash>
FRITZ!Box 6660 Cable (atom) 7.14 - 8.00 <bash>
FRITZ!Box 6670 Cable (atom) 7.61 - 7.90 <bash>
FRITZ!Box 6690 Cable (atom) 7.28 - 7.90 <bash>
4 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-12-21 07:44 GMT.

Firmware Symbol
0 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.