O'Reilly logo
  • Jacky Wang thinks this is interesting:

If expect reads characters that do not match the expected string, it continues waiting for more characters. If I had typed hello followed by a return, expect would continue to wait for "hi\n“.

From

Cover of Exploring Expect

Note

一直等待哦~~