mul() { a=$1 b=$2 echo Mul of $a and $b let c=$a*$b echo $c return $c } d=$(mul 3 4) echo $d