"Lee de Byl" <10*0*8*[email protected]*u*e*t*u*a*e*u*a*> wrote:
> Is there another mechanism I've missed for returning multiple values from functions that's > easy on the eyes, maintainable and efficient? What are the prevailing thoughts on global > variables in shell scripting achieving this, versus string processing?
Not a well supported feature (in bash).
You could have a function set multiple return values in different environment variables - similar to way
functions receive parameters as $1, $2, ...
you could have them return values through R1, R2, ...
Returning Multiple Values: string manipulation vs global variables vs alternatives. (all 6)