Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

User defined variable in KSH shell

Highlighted
rohit kumar gupta
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
Pete Randall
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
rariasn
Honored Contributor

Re: User defined variable in KSH shell

muruganantham raju
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
Bill Hassell
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.


Bill Hassell, sysadmin