title: Execute a shell function with timeout
body: <p>Why would this work</p>
  
  <pre><code>timeout 10s echo "foo bar" # foo bar
  </code></pre>
  
  <p>but this wouldn't</p>
  
  <pre><code>function echoFooBar {
    echo "foo bar"
  }
  
  echoFooBar # foo bar
  
  timeout 10s echoFooBar # timeout: failed to run command `echoFooBar': No such file or directory
  </code></pre>
  
  <p>and how can I make it work?</p>