标准语法(推荐的写法) function 函数名() { 指令... return n } 简化写法1 (不推荐的写法,无括号) function 函数名 { 指令... return n } 简化写法2 函数名() { 指令... return n }
shell 函数
原文:https://www.cnblogs.com/liang545621/p/13136784.html