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:declare

From BoxMatrix


BoxMatrix >> Shell-Commands >> declare @ 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

Bash-Command

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

Details

Excerpt from:   Bash source   >>   declare command

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

declare [-aAfFgilnrtux] [-p] [name[=value] ...]

Set variable values and attributes.

Declare variables and give them attributes.  If no NAMEs are given,
display the attributes and values of all variables.

Options:
  -f    restrict action or display to function names and definitions
  -F    restrict display to function names only (plus line number and
        source file when debugging)
  -g    create global variables when used in a shell function; otherwise
        ignored
  -p    display the attributes and value of each NAME

Options which set attributes:
  -a    to make NAMEs indexed arrays (if supported)
  -A    to make NAMEs associative arrays (if supported)
  -i    to make NAMEs have the `integer' attribute
  -l    to convert NAMEs to lower case on assignment
  -n    make NAME a reference to the variable named by its value
  -r    to make NAMEs readonly
  -t    to make NAMEs have the `trace' attribute
  -u    to convert NAMEs to upper case on assignment
  -x    to make NAMEs export

Using `+' instead of `-' turns off the given attribute.

Variables with the integer attribute have arithmetic evaluation (see
the `let' command) performed when the variable is assigned a value.

When used in a function, `declare' makes NAMEs local, as with the `local'
command.  The `-g' option suppresses this behavior.

Exit Status:
Returns success unless an invalid option is supplied or a variable
assignment error occurs.

Excerpt from:   bashref.info   >>   Bash Builtins   >>   declare command

declare [-aAfFgilnrtux] [-p] [NAME[=VALUE] ...]

Declare variables and give them attributes.  If no NAMEs are given,
then display the values of variables instead.

The '-p' option will display the attributes and values of each
NAME.  When '-p' is used with NAME arguments, additional options,
other than '-f' and '-F', are ignored.

When '-p' is supplied without NAME arguments, 'declare' will
display the attributes and values of all variables having the
attributes specified by the additional options.  If no other
options are supplied with '-p', 'declare' will display the
attributes and values of all shell variables.  The '-f' option will
restrict the display to shell functions.

The '-F' option inhibits the display of function definitions; only
the function name and attributes are printed.  If the 'extdebug'
shell option is enabled using 'shopt' (*note The Shopt Builtin::),
the source file name and line number where each NAME is defined are
displayed as well.  '-F' implies '-f'.

The '-g' option forces variables to be created or modified at the
global scope, even when 'declare' is executed in a shell function.
It is ignored in all other cases.

The following options can be used to restrict output to variables
with the specified attributes or to give variables attributes:

-a
     Each NAME is an indexed array variable (*note Arrays::).

-A
     Each NAME is an associative array variable (*note Arrays::).

-f
     Use function names only.

-i
     The variable is to be treated as an integer; arithmetic
     evaluation (*note Shell Arithmetic::) is performed when the
     variable is assigned a value.

-l
     When the variable is assigned a value, all upper-case
     characters are converted to lower-case.  The upper-case
     attribute is disabled.

-n
     Give each NAME the NAMEREF attribute, making it a name
     reference to another variable.  That other variable is defined
     by the value of NAME.  All references, assignments, and
     attribute modifications to NAME, except for those using or
     changing the '-n' attribute itself, are performed on the
     variable referenced by NAME's value.  The nameref attribute
     cannot be applied to array variables.

-r
     Make NAMEs readonly.  These names cannot then be assigned
     values by subsequent assignment statements or unset.

-t
     Give each NAME the 'trace' attribute.  Traced functions
     inherit the 'DEBUG' and 'RETURN' traps from the calling shell.
     The trace attribute has no special meaning for variables.

-u
     When the variable is assigned a value, all lower-case
     characters are converted to upper-case.  The lower-case
     attribute is disabled.

-x
     Mark each NAME for export to subsequent commands via the
     environment.

Using '+' instead of '-' turns off the attribute instead, with the
exceptions that '+a' may not be used to destroy an array variable
and '+r' will not remove the readonly attribute.  When used in a
function, 'declare' makes each NAME local, as with the 'local'
command, unless the '-g' option is used.  If a variable name is
followed by =VALUE, the value of the variable is set to VALUE.

When using '-a' or '-A' and the compound assignment syntax to
create array variables, additional attributes do not take effect
until subsequent assignments.

The return status is zero unless an invalid option is encountered,
an attempt is made to define a function using '-f foo=bar', an
attempt is made to assign a value to a readonly variable, an
attempt is made to assign a value to an array variable without
using the compound assignment syntax (*note Arrays::), one of the
NAMES is not a valid shell variable name, an attempt is made to
turn off readonly status for a readonly variable, an attempt is
made to turn off array status for an array variable, or an attempt
is made to display a non-existent function with '-f'.

GPL-Browser

Daily updated index of all declare code findings on the GPL-Browser. Last update: 2024-03-29 05:14 GMT.
The Browse column points to the Path containing the respective source code on the gpl.boxmatrix.info service.
The SoC column lists the Chip-Codenames, the Model column lists the nicks of the Box-Models.
The Diff column links the comparison of the AVM Kernel to the pristine original from Kernel.org.
The Download column links the full tarball the respective directory content is extracted from.
The presence of the source does not mean it fits the respective model and architecture. See the Model-Matrix where it's used.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-03-29 08:04 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-03-29 06:17 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) label in the Model column shows which CPU is meant for models with multiple Linux instances.
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 4020 7.39 <bash>
FRITZ!Box 4040 7.39 <bash>
FRITZ!Box 4060 7.39 <bash>
FRITZ!Box 5530 Fiber (main) 7.39 <bash>
FRITZ!Box 5590 Fiber (arm) 7.39 <bash>
FRITZ!Box 6430 Cable (arm) 7.57 <bash>
FRITZ!Box 6490 Cable (arm) 7.39 - 7.57 <bash>
FRITZ!Box 6590 Cable (arm) 7.39 - 7.57 <bash>
FRITZ!Box 6591 Cable (arm) 7.04 - 7.57 <bash>
FRITZ!Box 6591 Cable (atom) 7.04 - 7.57 <bash>
FRITZ!Box 6660 Cable (arm) 7.14 - 7.57 <bash>
FRITZ!Box 6660 Cable (atom) 7.14 - 7.57 <bash>
FRITZ!Box 6670 Cable (arm) 7.57 - 7.61 <bash>
FRITZ!Box 6670 Cable (atom) 7.61 <bash>
FRITZ!Box 6690 Cable (arm) 7.28 - 7.57 <bash>
FRITZ!Box 6690 Cable (atom) 7.28 - 7.57 <bash>
FRITZ!Box 6820 LTE v1 7.39 <bash>
FRITZ!Box 6820 LTE v2 7.39 <bash>
FRITZ!Box 6840 LTE 7.39 <bash>
FRITZ!Box 6850 LTE 7.39 <bash>
FRITZ!Box 6850 5G 7.39 <bash>
FRITZ!Box 6890 LTE 7.39 <bash>
FRITZ!Box 6890 LTE v1 7.39 <bash>
FRITZ!Box 6890 LTE v2 7.39 <bash>
FRITZ!Box 7272 7.39 <bash>
FRITZ!Box 7430 7.39 <bash>
FRITZ!Box 7490 (main) 7.39 - 7.57 <bash>
FRITZ!Box 7520 7.39 <bash>
FRITZ!Box 7520 v2 (arm) 7.39 <bash>
FRITZ!Box 7530 7.39 <bash>
FRITZ!Box 7530 AX 7.39 <bash>
FRITZ!Box 7560 7.39 <bash>
FRITZ!Box 7590 7.39 <bash>
FRITZ!Box 7590 AX 7.39 <bash>
FRITZ!Repeater 600 7.39 <bash>
FRITZ!Repeater 1200 7.39 <bash>
FRITZ!WLAN Repeater 1750E 7.39 <bash>
FRITZ!Repeater 2400 7.39 <bash>
FRITZ!Repeater 3000 7.39 <bash>
FRITZ!Repeater 3000 AX 7.39 <bash>
FRITZ!Powerline 1260E 7.39 <bash>
41 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-03-29 08:04 GMT.

Firmware Symbol
0 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

d