integerdeclare an integer variable |
KornShell Built-in |
integer [±Hlprtux]
[±LRZ[number]]
[variable[=value] ...]
integer declares a KornShell variable to be an integer.
This improves the speed with which the variable can be manipulated.
integer is a built-in alias defined with
The options foralias integer='typeset -i'
integer are identical to those for the
version of typeset that deals with
variables. Invoking integer without any arguments displays
all integer variables.
For more information, see typeset.
0Successful completion.
>0The number of invalid variable names specified on the command line.
integer is built into the KornShell but not
the Bourne Shell. It is an extension to the POSIX.2 and XPG standards.