version 1.28, 2007/06/27 21:10:39 |
version 1.29, 2008/06/04 14:04:42 |
|
|
.Fa cmd |
.Fa cmd |
and returns its exit status. |
and returns its exit status. |
.El |
.El |
|
.Ss Bit-Operation functions |
|
.Bl -tag -width "lshift(a, b)" |
|
.It Fn compl x |
|
Returns the bitwise complement of integer argument x. |
|
.It Fn and x y |
|
Performs a bitwise AND on integer arguments x and y |
|
.It Fn or x y |
|
Performs a bitwise OR on integer arguments x and y |
|
.It Fn xor x y |
|
Performs a bitwise Exclusive-OR on integer arguments x and y |
|
.It Fn lshift x n |
|
Returns x shifted by n bits to the left. |
|
.It Fn rshift x n |
|
Returns y shifted by n bits to the right. |
|
.El |
.Pp |
.Pp |
Functions may be defined (at the position of a pattern-action statement) |
Functions may be defined (at the position of a pattern-action statement) |
thusly: |
thusly: |
|
|
and |
and |
.Op Fl safe , |
.Op Fl safe , |
as well as the command |
as well as the command |
.Cm fflush , |
.Cm fflush , compl , and , or , xor , lshift , rshift |
are extensions to that specification. |
are extensions to that specification. |
.Sh HISTORY |
.Sh HISTORY |
An |
An |