Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

User defined variable in KSH shell

Occasional Contributor

User defined variable in KSH shell


I just want to know how many user variable can defined in ksh shell ?
is ther any limit for defining no of variable ?
4 REPLIES
Outstanding Contributor Outstanding Contributor

Re: User defined variable in KSH shell

I've never heard of such a limit. You could take a look at "man ksh".


Pete

Pete
Honored Contributor Honored Contributor

Re: User defined variable in KSH shell

Valued Contributor Valued Contributor

Re: User defined variable in KSH shell

Hi Rohit,
You can define 1000s of variable. It is not recommended to use too many user variables.

Regards,
Muru
Highlighted
Honored Contributor Honored Contributor

Re: User defined variable in KSH shell

You can create thousands and thousands of variables. However, like any 32bit program, the data that you assign to each variable must be stored in memory and ksh is limited to about 900 MB of local memory. Similarly, you can assign a single variable dozens of megabytes of data, in which case you can only create a few that are very large before exceeding local memory limits.