除非特別指定成local,不然皆為全域變數。 local var1="string" #!/bin/bash funct () { echo "Inside -- funct: $# args: $1 $2 $3" } echo ...
確定! 回上一頁