Bash Scripting - Variables
Identify the error in this script snippet:
declare -i num=5 num=num+3 echo $num
declare -i num=5 num=num+3 echo $num
num=num+3 treats right side as string, not arithmetic.num=$((num + 3)) to evaluate arithmetic expression.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions