Bash 宣告函式(Function)可以用底下兩種格式 name () { } or function name [()] { } 範例: #!/bin/sh showFunc () { echo \$FUNCNAME = $FUNCNAME }
確定! 回上一頁