title: Can bash show a function's definition?
body: <p>Is there a way to view a bash function's definition in bash?</p>
  
  <p>For example, say I defined the function <code>foobar</code></p>
  
  <pre><code>function foobar {
      echo "I'm foobar"
  }
  </code></pre>
  
  <p>Is there any way to later get the code that <code>foobar</code> runs?</p>
  
  <pre><code>$ # non-working pseudocode
  $ echo $foobar
  echo "I'm foobar"
  </code></pre>