Bash: Variable type confusion

kwall@kurtwerks.com kwall
Mon May 17 11:39:09 PDT 2004


On Sun, Oct 20, 2002 at 06:26:29PM -0400, Joel Hammer wrote:
> If I use a variable as an integer, then use as a string, it doesn't go
> back to being an integer nicely. 
> Oh well. Either I had forgotten about this behavior or I never ran across it
> before. Almost the same thing at my age.

Try "typeset -i <varname>"?

Kurt
-- 
Logic is a little bird, sitting in a tree; that smells *_____awful*.



More information about the Linux-users mailing list