Try this: x=5+4; echo $x and you get "5+4" of course. But first: declare -i x (which says x will hold integers) then echo $x gives: 9.
0
3
5
0
0