title: bash function with return value AND return string
body: <p>First my sourcecode to test the returning method of bash functions:</p>
  
  <pre><code>function oidev.fnc.bash.example.fncreturnstringvalue
  {
    echo "ABC"
    return 1
  }
  </code></pre>
  
  <p>and the caller function:</p>
  
  <pre><code>function oidev.fnc.bash.example.fncreturnstringvaluecaller
  {
    local FNCVALUE
    local FNCSTRING
    FNCSTRING=$(oidev.fnc.bash.example.fncreturnstringvalue &amp;&amp; FNCVALUE="$?" || FNCVALUE="$?")
     # String OK but Value empty
    echo "VALUE : $FNCVALUE" 
    echo "STRING: $FNCSTRING"
    unset FNCVALUE
    unset FNCSTRING
    oidev.fnc.bash.example.fncreturnstringvalue &amp;&amp; FNCVALUE="$?" || FNCVALUE="$?"
      # Value OK and String on STDOUT
    echo "VALUE : $FNCVALUE" 
    echo "STRING: $FNCSTRING"
  }
  </code></pre>
  
  <p>The output in bash:
      <br>VALUE :
      <br>STRING: ABC
      <br>ABC
      <br>VALUE : 1
      <br>STRING: (surely empty, but echoed from the function)
  `
  <br>
  <br>And now my simple question:
  <br>Is it possible to get the returning string and returning value into two different variables by a single line construction?
  <br><br>I don't want to use globals, nore the use of if $? after the sub-call!
  <br>Many thanks for help, and sorry for my german-english!</p>