You get the return value of any command in $? >> 8. I don't understand the title of your question (which is different from the content) though. What do you mean with "multiple return values"? A process only has a single return value. And it's an integer between 0 and 255, inclusive.