unable to evaluate the expression in shell script -
i'm trying evaluate following:
a= 08 b= 5 echo `expr $a + $b` it gives error: "couldn't evaluate expression operands numeric required expression operator."
it seems there problem 08. not treating 8.
thanks in advance, milind
the leading 0 in 08 denotes octal literal, , 8 not valid octal digit.
Comments
Post a Comment