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. x/OPEN Portability Guide 4.0.

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.


SEE ALSO

Commands:
alias, sh, typeset


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]