Operating System - HP-UX
1751807 Members
4977 Online
108781 Solutions
New Discussion юеВ

Re: User defined variable in KSH shell

 
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 4
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