title: What's does a bash function return when there is no “return” statement?
body: <p>Is the return value of a bash function the status of the last executed command?</p>
  
  <p>I wrote this test and it looks like it's so. I just want to verify. No one has asked this question before apparently and tutorials don't mention this.</p>
  
  <p>Test program:</p>
  
  <pre><code>funa() {
    echo "in funa";
    true;
  };
  
  funb() {
    echo "in funb"
    false;
  };
  
  funa &amp;&amp; echo "funa is true";    
  funb &amp;&amp; echo "funb is true";
  </code></pre>
  
  <p>Output when I run the program:</p>
  
  <pre><code>in funa
  funa is true
  in funb
  </code></pre>
  
  <p>Does anyone know the answer?</p>