Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KSH variables

Status
Not open for further replies.

vlz

IS-IT--Management
Aug 11, 2002
56
0
0
IL
Hi,
Do you know what is the max length of environment variable Name & Value in KSH environments?

Thanks in advance,
Vadim

 
vlz,

ksh dynamically allocates space for variable names and does not impose a limit on the length of a name. There is a limit on the maximum length of an input line and this will indirectly impose a limit on variable name length. Your version of ksh should guarantee that it can handle a command line of at least LINE_MAX length. Your value for LINE_MAX may be on a limits man page.


However, good programming technique will dictate much smaller variable sizes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top