let arg [arg ...]
Each arg is an arithmetic expression to be evaluated (see
ARITHMETIC EVALUATION). If the last arg evaluates to 0, let
returns 1; 0 is returned otherwise.
typeset [-afFirtx] [-p] [name[=value]]
Declare variables and/or give them attributes. If no names
are given then display the values of variables. The -p option
will display the attributes and values of each name. When -p
is used, additional options are ignored. The -F option
inhibits the display of function definitions; only the func-
tion name and attributes are printed. The -F option implies
-f. The following options can be used to restrict output to
variables with the specified attribute or to give variables
attributes:
-a Each name is an array variable (see Arrays above).
-f Use function names only.
-i The variable is treated as an integer; arithmetic eval-
uation (see ARITHMETIC EVALUATION ) is performed when
the variable is assigned a value.
-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 trap from the calling shell. The
trace attribute has no special meaning for variables.
-x Mark names for export to subsequent commands via the
environment.