ENUM ( 1 ) USER COMMANDSENUM ( 1 )


NAME

enum - create an enumeration type

SYNOPSIS

enum [ options ] typename[=( value ... )]

DESCRIPTION

enum is a declaration command that creates an enumeration type typename that can only store any one of the values in the indexed array variable typename.

If the list of values is omitted, then typename must name an indexed array variable with at least two elements.

OPTIONS

-i, --ignorecase
The values are case insensitive.

EXIT STATUS

0
Successful completion.
>0
An error occurred.

SEE ALSO

ksh(1), typeset(1).

IMPLEMENTATION

version
enum (AT&T Research) 2008-01-08
author
David Korn <dgkorn@gmail.com>
copyright
Copyright © 1982-2010 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt