[root@m01 ~]# expr 1 + 1
2
[root@m01 ~]# echo $?
0
[root@m01 ~]# echo 1 - 5
1 - 5
[root@m01 ~]# expr 1 - 5
-4
[root@m01 ~]# echo $?
0
[root@m01 ~]# expr 1 + -1
0
[root@m01 ~]# echo $?
1
[root@m01 ~]# expr 1 + f
expr: non-numeric argument
[root@m01 ~]# echo $?
2