version 1.60, 2013/07/16 00:07:52 |
version 1.61, 2014/01/12 09:33:32 |
|
|
Passes its first argument to a shell and returns the shell's standard output. |
Passes its first argument to a shell and returns the shell's standard output. |
Note that the shell shares its standard input and standard error with |
Note that the shell shares its standard input and standard error with |
.Nm . |
.Nm . |
.It Fn eval expr |
.It Fn eval expr[,radix[,minimum]] |
Computes the first argument as an arithmetic expression using 32-bit |
Computes the first argument as an arithmetic expression using 32-bit |
arithmetic. |
arithmetic. |
Operators are the standard C ternary, arithmetic, logical, |
Operators are the standard C ternary, arithmetic, logical, |
shift, relational, bitwise, and parentheses operators. |
shift, relational, bitwise, and parentheses operators. |
You can specify |
You can specify |
octal, decimal, and hexadecimal numbers as in C. |
octal, decimal, and hexadecimal numbers as in C. |
The second argument (if any) |
The optional second argument |
specifies the radix for the result and the third argument (if any) |
.Fa radix |
|
specifies the radix for the result and the optional third argument |
|
.Fa minimum |
specifies the minimum number of digits in the result. |
specifies the minimum number of digits in the result. |
.It Fn expr expr |
.It Fn expr expr |
This is an alias for |
This is an alias for |