title: invalid command name "cat". expect send [ ] at shell script
body: <p>I want to use expect at shell script</p>
  
  <p>My code is here</p>
  
  <pre><code>#!/bin/sh
  
  expect &lt;&lt; EOF
  send [cat hello]
  EOF
  </code></pre>
  
  <p>This command is failed</p>
  
  <blockquote>
    <p>invalid command name "cat"</p>
    
    <p>while executing "cat hello"</p>
    
    <p>invoked from within "send [cat hello]"</p>
  </blockquote>
  
  <p>but, send [cat hello] command successed in expect prompt </p>
  
  <pre><code>expect1.1&gt; send [cat hello]
  world
  expect1.2&gt; 
  </code></pre>
  
  <p>Why do I output the different execution results ?</p>