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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -