title: How to use stdbuf on a bash function
body: <p>We can use stdbuf on a regular command, e.g.</p>
  
  <pre><code>stdbuf -o 0 echo aaa
  </code></pre>
  
  <p>However I can't use it on a bash function, e.g.</p>
  
  <pre><code>function tmpf() { echo aaa; }
  stdbuf -o 0 tmpf
  </code></pre>
  
  <p>What's the reason for that? Thanks!</p>