MPE/iX Shell and Utilities Reference Manual, Vol 1

integer(1) MPE/iX Shell and Utilities integer(1)
NAME
integer — declare an integer variable
SYNOPSIS
integer [±Hlprtux][±LRZ[number]] [variable[=value] ...]
DESCRIPTION
integer declares a shell variable to be an integer. This improves the speed with which the
variable can be manipulated. integer is a built-in alias defined with
alias integer=’typeset -i’
The options for 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(1).
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to an invalid command line argument.
If the command is used to display the values of variables, the exit status value is the number of
names that are invalid.
Messages
Because this command is an alias for a utility built into the
MPE/iX
Shell, see the sh(1) man
page for a complete list of error messages that you may receive when using it.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0.
On UNIX systems, integer is built into the KornShell but not the Bourne Shell.
NOTE
This is an alias built into the shell.
SEE ALSO
alias(1), sh(1), typeset(1)
Commands and Utilities 1-273