Unix Shell - What is the max # of characters that I can assign to a var?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > October 2004 > What is the max # of characters that I can assign to a var?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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

2004-10-02, 9:13 pm

AIX 5.2

Hello Group,

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

Thanks in advance.
Suhas
Stachu 'Dozzie' K.

2004-10-02, 9:13 pm

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
rakesh sharma

2004-10-02, 9:13 pm

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com