Shell Script - Exit Status 使用範例。 ... #!/usr/bin/env bash AA() { return 9 } AA echo $? ... 這裡會得到空白值,不是原本預期的return,要用上面的「$?」.
確定! 回上一頁