1 |
In my response matching I would like to have a catch all so if nothing |
2 |
specific is matched I can take an action, but when I include the "*" |
3 |
option, it is selected even if string1 matches. From the expect man page |
4 |
"In the event that multiple patterns match, the one appearing first is used |
5 |
to select a body." So why are actions3 getting executed when string1 is |
6 |
matched? If i remove the "*" section, string1 is matched. |
7 |
|
8 |
expect { |
9 |
"string1" { <actions1> } |
10 |
"string2" { <actions2> } |
11 |
"*" { <actions3> } |
12 |
} |