mirror of
https://github.com/PDP-10/its.git
synced 2026-01-13 15:27:28 +00:00
More strict matching in Expect script.
This commit is contained in:
parent
8b55343114
commit
c3566c7853
@ -2,7 +2,11 @@ proc type s {
|
||||
sleep .2
|
||||
foreach c [split $s ""] {
|
||||
send $c
|
||||
expect -re .
|
||||
if [string match {[a-z]} $c] {
|
||||
expect -nocase $c
|
||||
} else {
|
||||
expect "?"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user