[bash] string return from a function