Re: [gentoo-user] OT expect script question

2018-12-05 Thread Adam Carter
> > Could it be that it just matches empty without waiting for anything? > Perhaps, but that would only matter if it is processing per character, not per line. I had assumed that it would not evaluate the blocks until it received an End of Line character, but I will test that assumption. Thanks

Re: [gentoo-user] OT expect script question

2018-12-04 Thread Gerrit Kühn
On Wed, 5 Dec 2018 11:28:55 +1100 Adam Carter wrote about [gentoo-user] OT expect script question: > expect { > "string1" { } > "string2" { } > "*" { } > } From <https://www.oreilly.com/library/view/exploring-expect/978156592

[gentoo-user] OT expect script question

2018-12-04 Thread Adam Carter
In my response matching I would like to have a catch all so if nothing specific is matched I can take an action, but when I include the "*" option, it is selected even if string1 matches. From the expect man page "In the event that multiple patterns match, the one appearing first is used to select