Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] OT expect script question
Date: Wed, 05 Dec 2018 00:29:16
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.
8 expect {
9 "string1" { <actions1> }
10 "string2" { <actions2> }
11 "*" { <actions3> }
12 }


Subject Author
Re: [gentoo-user] OT expect script question "Gerrit Kühn" <gerrit.kuehn@×××××××.de>