User defined variable in KSH shell (204 Views)
Reply
Occasional Contributor
rohit kumar gupta
Posts: 8
Registered: ‎01-16-2010
Message 1 of 5 (204 Views)

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 ?
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 2 of 5 (204 Views)

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
Please use plain text.
Honored Contributor
rariasn
Posts: 1,135
Registered: ‎08-09-1999
Message 3 of 5 (204 Views)

Re: User defined variable in KSH shell

Please use plain text.
Valued Contributor
muruganantham raju
Posts: 149
Registered: ‎06-29-2010
Message 4 of 5 (204 Views)

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
Please use plain text.
Honored Contributor
Bill Hassell
Posts: 14,205
Registered: ‎05-29-2000
Message 5 of 5 (204 Views)

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.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation