title: wildcard in expect script doesn't work
body: <p>I have the following script running successfully. However if I try to use a wildcard, to copy multiple files, it throws an error, saying “No such file or directory”. </p>
  
  <p>This code works:</p>
  
  <pre><code>#!/usr/bin/expect -f
  spawn scp file1.txt root@192.168.1.156:/temp1/.
  expect "password:"
  send "iamroot\r"
  expect "*\r"
  expect "\r"
  </code></pre>
  
  <p>The following doesn't work:</p>
  
  <pre><code>#!/usr/bin/expect -f
  spawn scp * root@192.168.1.156:/temp/. #fails here
  ….
  </code></pre>