What is the max # of characters that I can assign to a var?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Shell > What is the max # of characters that I can assign to a var?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    What is the max # of characters that I can assign to a var?  
Suhas


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:13 AM

AIX 5.2

Hello Group,

What is the maximum number of characters that I can assign to a variable?

Thanks in advance.
Suhas





[ Post a follow-up to this message ]



    Re: What is the max # of characters that I can assign to a var?  
Stachu 'Dozzie' K.


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:13 AM

On 2004-09-29, Suhas wrote:
> AIX 5.2
>
> Hello Group,
>
> What is the maximum number of characters that I can assign to a variable?

In which shell?

--
Stanislaw Klekot





[ Post a follow-up to this message ]



    Re: What is the max # of characters that I can assign to a var?  
rakesh sharma


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-03-04 02:13 AM

sgtembe@hotmail.com (Suhas) wrote in message news:

>
> AIX 5.2
>
> Hello Group,
>
> What is the maximum number of characters that I can assign to a variable?
>

varname='v'
while :; do
varname="${varname}A"
eval "$varname="
case $? in
0) :;;
*) echo 'max var name len = '
expr "$varname" : '.*';;
esac
done





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:24 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register