title: TCL list element in quotes followed by } instead of space
body: <p>I'm trying to write an automated validation test on a small program using TCL.  It should evaluate the input h1=7 and pass if the output is 7.000000.  Likewise, the input h1=9 should pass if the output is 9.0000.  However, I get the following error:</p>
  
  <pre><code>ERROR: list element in quotes followed by "}" instead of space
      while executing
  "foreach pattern $testdata {
      set inputs   [ lindex $pattern 0 ]
      set expected [ lindex $pattern 1 ]
  
      eval "spawn $CLIC $inputs"
      expect {..."
      (file "./test/clic/test-clic.exp" line 22)
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>#!/usr/bin/expect
  set tool "clic"
  set CLIC "./clic "
  
  set testdata {
      {"h1=7" "7.000000"}
      {"h1=9" "9.000000"}
  }
  
  # global CLIC
  foreach pattern $testdata {
      set inputs   [ lindex $pattern 0 ]
      set expected [ lindex $pattern 1 ]
  
      eval "spawn $CLIC $inputs"
      expect {
          $expected { pass $inputs }
          default   { fail $inputs }
      }
  }
  </code></pre>
  
  <p>How do I resolve this?  Thank you.</p>