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:let (bashcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> let (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 let!
let (bashcmd) Evaluate arithmetic expressions.
let (bbcmd) Perform arithmetic on shell variables.

Bash-Command

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

Details

Excerpt from:   Bash source   >>   let command

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

let arg [arg ...]

Evaluate arithmetic expressions.

Evaluate each ARG as an arithmetic expression.  Evaluation is done in
fixed-width integers with no check for overflow, though division by 0
is trapped and flagged as an error.  The following list of operators is
grouped into levels of equal-precedence operators.  The levels are listed
in order of decreasing precedence.

    id++, id--    variable post-increment, post-decrement
    ++id, --id    variable pre-increment, pre-decrement
    -, +        unary minus, plus
    !, ~        logical and bitwise negation
    **        exponentiation
    *, /, %        multiplication, division, remainder
    +, -        addition, subtraction
    <<, >>        left and right bitwise shifts
    <=, >=, <, >    comparison
    ==, !=        equality, inequality
    &        bitwise AND
    ^        bitwise XOR
    |        bitwise OR
    &&        logical AND
    ||        logical OR
    expr ? expr : expr
            conditional operator
    =, *=, /=, %=,
    +=, -=, <<=, >>=,
    &=, ^=, |=    assignment

Shell variables are allowed as operands.  The name of the variable
is replaced by its value (coerced to a fixed-width integer) within
an expression.  The variable need not have its integer attribute
turned on to be used in an expression.

Operators are evaluated in order of precedence.  Sub-expressions in
parentheses are evaluated first and may override the precedence
rules above.

Exit Status:
If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise.

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

let EXPRESSION [EXPRESSION ...]

The 'let' builtin allows arithmetic to be performed on shell
variables.  Each EXPRESSION is evaluated according to the rules
given below in *note Shell Arithmetic::.  If the last EXPRESSION
evaluates to 0, 'let' returns 1; otherwise 0 is returned.

Excerpt from:   bashref.info   >>   Shell Arithmetic   >>   let command

Shell Arithmetic

The shell allows arithmetic expressions to be evaluated, as one of the
shell expansions or by using the '((' compound command, the 'let'
builtin, or the '-i' option to the 'declare' builtin.

Evaluation is done in fixed-width integers with no check for
overflow, though division by 0 is trapped and flagged as an error.  The
operators and their precedence, associativity, and values are the same
as in the C language.  The following list of operators is grouped into
levels of equal-precedence operators.  The levels are listed in order of
decreasing precedence.

ID++ ID--
  variable post-increment and post-decrement

++ID --ID
  variable pre-increment and pre-decrement

- +
  unary minus and plus

! ~
  logical and bitwise negation

**
  exponentiation

* / %
  multiplication, division, remainder

+ -
  addition, subtraction

<< >>
  left and right bitwise shifts

<= >= < >
  comparison

== !=
  equality and inequality

&
  bitwise AND

^
  bitwise exclusive OR

|
  bitwise OR

&&
  logical AND

||
  logical OR

expr ? expr : expr
  conditional operator

= *= /= %= += -= <<= >>= &= ^= |=
  assignment

expr1 , expr2
  comma

Shell variables are allowed as operands; parameter expansion is
performed before the expression is evaluated.  Within an expression,
shell variables may also be referenced by name without using the
parameter expansion syntax.  A shell variable that is null or unset
evaluates to 0 when referenced by name without using the parameter
expansion syntax.  The value of a variable is evaluated as an arithmetic
expression when it is referenced, or when a variable which has been
given the INTEGER attribute using 'declare -i' is assigned a value.  A
null value evaluates to 0.  A shell variable need not have its INTEGER
attribute turned on to be used in an expression.

Constants with a leading 0 are interpreted as octal numbers.  A
leading '0x' or '0X' denotes hexadecimal.  Otherwise, numbers take the
form [BASE'#']N, where the optional BASE is a decimal number between 2
and 64 representing the arithmetic base, and N is a number in that base.
If BASE'#' is omitted, then base 10 is used.  When specifying N, the
digits greater than 9 are represented by the lowercase letters, the
uppercase letters, '@', and '_', in that order.  If BASE is less than or
equal to 36, lowercase and uppercase letters may be used interchangeably
to represent numbers between 10 and 35.

Operators are evaluated in order of precedence.  Sub-expressions in
parentheses are evaluated first and may override the precedence rules
above.

GPL-Browser

Daily updated index of all let code findings on the GPL-Browser. Last update: 2024-04-24 04: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-04-24 07:26 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-04-24 05:11 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.90 <bash>
FRITZ!Box 6591 Cable (atom) 7.04 - 7.90 <bash>
FRITZ!Box 6660 Cable (arm) 7.14 - 7.90 <bash>
FRITZ!Box 6660 Cable (atom) 7.14 - 7.90 <bash>
FRITZ!Box 6670 Cable (arm) 7.57 - 7.62 <bash>
FRITZ!Box 6670 Cable (atom) 7.61 - 7.62 <bash>
FRITZ!Box 6690 Cable (arm) 7.28 - 7.90 <bash>
FRITZ!Box 6690 Cable (atom) 7.28 - 7.90 <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-04-24 07:26 GMT.

Firmware Symbol
0 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.