title: default path in expect script condition
body: <p>I'm trying to create an expect script where it will execute every expect condition except the last.</p>
  <p>For instance:</p>
  <pre><code>send -- &quot;command\r&quot;
  expect {
          &quot;No such file or directory&quot; {
              
          }
          &quot;Permission Denied&quot; {
              puts &quot;Command Location 1 execution Failed&quot;
          }
          &quot;finished&quot;
      }
  
  send -- &quot;exit\r&quot;
  expect eof
  exit 0
  </code></pre>
  <p>Essentially if the expect script detects &quot;No such file or directory&quot; OR &quot;Permission Denied&quot; I want 'puts &quot;Command Location 1 execution Failed&quot;' to be executed rather than having to duplicate in both conditions. However, if &quot;finished&quot; is detected, I don't want anything to be printed, and just have the exit command be sent.</p>
  <p>I was thinking the following:</p>
  <pre><code>send -- &quot;command\r&quot;
  expect {
          &quot;No such file or directory&quot; {
          }
          &quot;Permission Denied&quot; {
          }
          &quot;*&quot; {
           puts &quot;Command Location 1 execution Failed&quot;
          }
          &quot;finished&quot;
      }
  
  send -- &quot;exit\r&quot;
  expect eof
  exit 0
  </code></pre>
  <p>If only I could have a condition where its like !=&quot;finished&quot;, that would be perfect.</p>
  <p>Any help would be appreciated!</p>