Ray Parrish <crp at cmc.net> writes: >I need to know how to return a string value from a bash function. I >tried using "return $VariableName", and got the error that return >expected a numeric value. You use "echo". eg. foo() { echo "result" } bar=$(foo)