GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ENUM(1) Korn Shell ENUM(1)

enum - create an enumeration type

enum [flags] typename*[ `=(` *value ... ) ]

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 value*s is omitted, then *typename must name an indexed array variable with at least two elements.

When an enumeration variable is used in an arithmetic expression, its value is the index into the array that defined it starting from index 0. Enumeration strings can be used in an arithmetic expression when comparing against an enumeration variable.

The enum _Bool exists by default with values true and false. The predefined alias bool is defined as _Bool.

-i, --ignorecase
The values are case insensitive.
-p
Writes the enums to standard output. If typename is omitted then all enums are written.

0
Successful completion.
>0
An error occurred.

typeset(1).

David J. Korn, et. al.

2019, David J. Korn, et.al.
October 3, 2019

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.