title: Expect loop doesn't print variables
body: <p>I can't get to have the variables in an expect loop written:</p>
  
  <pre><code>#!/bin/bash
  
  expect -c "
  set var1 10
  puts {$var1}
  puts $expect_out({$var1})
  
  foreach name { bob jim jacobo henric } {
     puts {hello $name $var1}  
  }"
  </code></pre>
  
  <p>my output is:</p>
  
  <pre><code># ./test 
  ({})
  hello  
  hello  
  hello  
  hello
  </code></pre>
  
  <p>So basically it's not expanding any variable. 
  Any idea?</p>