无返回值

函数

#函数像命令一样调用:先写名称,再写参数,
#不带括号和逗号
add3AndPrint() {
    echo $(($1 + 3))
}

add3AndPrint 5
#prints 8