title: how to eval csh shell variable
body: <pre><code>#!/bin/csh
  set passFail_file = "name"
  
  set numErrs = `/bin/grep -c ERROR $passFail_file`
  echo "numErrs is $numErrs"        # displays numErrs is 0, which isn't always correct
  set dirLocale = `/bin/sed q $passFail_file`   #capture line 1 in file, which is nonBlank
  echo "dirLocale is $dirLocale"   # displays: dirLocale is
  </code></pre>
  
  <p>When I run the above script, I can not get dirLocale to assign.  Is there an equivalent of eval in csh?  What would be the syntax? I'm thinking I'm missing out on the mix of backquotes, and order of operations.</p>