linux shell function的相關文章
linux shell function的相關公司資訊
linux shell function的相關商品

shell script - Returning a value from a bash function - Unix & Linux Stack Exchange
瀏覽:889
日期:2025-04-24
@choroba's answer is correct, however this example might be clearer: valNum $num valNumResult=$? # '$?' is the return value of the previous command if [[ $valNumResult -eq 1 ]] then : # do something fi This example is a little longer (setting $valNumResul...看更多