share variable (可用 bash -n filename 檢查語法). Shell. 帶參數的函數. MSG=$1 # 代表shell的第1個參數 foo() { msg=$1 # function的第一個參數 echo "$msg" } 呼叫 ...
確定! 回上一頁