title: Expect function bash
body: <p>I'm trying to do a bash script with expect in this style : </p>
  
  <pre><code>spawn etc 
  expect "something"
  send -- "something " 
  etc
  </code></pre>
  
  <p>But I would like to do </p>
  
  <pre><code>send -- function()
  </code></pre>
  
  <p>How is this possible ? </p>
  
  <p>Thank you </p>