integer

declare an integer variable 

KornShell Built-in


SYNOPSIS

integer [±Hlprtux] [±LRZ[number]] [variable[=value] ...]


DESCRIPTION

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

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.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

The number of invalid variable names specified on the command line.


PORTABILITY

POSIX.2. Windows 2000. Windows XP. Windows Server 2003. Windows Vista.

On UNIX systems, integer is built into the KornShell but not the Bourne Shell. It is an extension to the POSIX.2 and XPG standards.


NOTE

This is an alias built into the MKS KornShell.


AVAILABILITY

MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
alias, sh, typeset


MKS Toolkit 9.2 Documentation Build 16.