I want to know what exactly is the difference between
a=$[1+1]
a=$((1+1))
let a=1+1
a=$(expr 1 + 1 )
All 4 assign the variable a with 2, but what is the difference?
From what I found out so far, is that expr is slower because it is not an actual shell builtin. But not anything more than that.