I am not able to find why my code is not running. I am trying to send integers as the actual parameters to the add() function. As command substitution will substitutes the output of add() in the place of add 5 6
.
#!/bin/bash
add () {
echo `expr $1 + $2`
}
VAR= `add 5 6`
echo ${VAR:-"This is not defined"}