03-06-05 07:48 AM
Ken Applequist <apple07840@yahoo.com> wrote:
> Then what's the point to the typset -i command?
>
> I would have assumed that this command would store data in binary in
> order to avoid converting from character to binary. If a variable has
> to be converted every time it's interpreted any way, what's the point
> to using the typset -i command?
There is only one data type in shell, ie. text or string. It's stored
as string. 'typeset -i' or 'declare -i' will make difference when you
are assigning to the variable, not when you are reading from the
variable.
Eg.
declare -i a
a=0
a=000
--
William Park <opengeometry@yahoo.ca>, Toronto, Canada
Slackware Linux -- because it works.
[ Post a follow-up to this message ]
|