Oluwasetemi/learningBash

Redundant Use of Command Substitution and `echo` Builtin

Opened this issue · 0 comments

answer=$(echo $(( x % y )))

As the title suggests. ;) This is a common error, with a thankfully easy solution:

answer=$(( x % y ))