The type does not matter since it is a simple replacement for text. In other words, the value of the variable $tempwill be replaced instead $temp(for example).
, ksh , , 0. , , .
:
$ export s1=xyz
$ export s2=7xyz
$ export i1=0
$ if [ $i1 -eq $s1 ]
> then
> echo equal
> fi
equal
$ if [ $i1 -eq $s2 ]
> then
> echo equal
> fi
ksh: 7xyz: bad number `7xyz'
, , ksh.
, . .