title: How to Both Pass an Argument Into a Function and Get a Return Value in Bash?
body: <p>My code is very simple.</p>
  
  <pre><code>variable=$( createTable $table_name )
  </code></pre>
  
  <p>or</p>
  
  <pre><code>returnedVariable=$( function $argument )
  </code></pre>
  
  <p>My code breaks on this line. I haven't been able to find anywhere on the internet how to <strong>both</strong> pass an argument and get a return value in Bash.</p>
  
  <p>UPDATE: I get it now. I can't have multiple echo's in my function. Also echo should never be considered a return but a print statement or stdout which you can capture. Thank you for the feedback!</p>