bash mendapatkan hasil fungsi

function myFunc {
    result="do something"
    echo $result
}

echo "$(myFunc)"
slohobo