Script Command: SET
SET [-e] {VAR} {VAL | =EXPRESSION}
Establish the content of a shell variable. This can be a simple equality (set VAR VAL) or it can be an expression (set VAR=$VAL+1).
Options:
-eexport (see note below) the variable being established.
The expression evaluator handles the following operators in the following priority:
The evaluator supports logical functions for shifting and masking (|,&,>,<).
It also supports embedded functions. The current set of functions are:
The result is displayed in decimal unless somewhere within the expression the 'hex' function is used.
Examples:
Note1: The expression must contain no whitespace.
Note2: Under the context of uCon, an exported shell variable means it will be saved to a configuration file if a save is done after being exported. This is convenient for cases where environment variables are configured on the first pass of a script, then on later invocations of uCon that same environment can be restored if the variables are exported.