Are there any idioms for returning multiple values from a bash function within a script?
http://tldp.org/LDP/abs/html/assortedtips.html describes how to echo multipl
I am new to bash, But found this code helping.
function return_multiple_values() { eval "$1='What is your name'" eval "$2='my name is: BASH'" } return_var='' res2='' return_multiple_values return_var res2 echo $return_var echo $res2