]> err.no Git - util-linux/commit
scriptreplay: new implementation is out-of-sync
authorKarel Zak <kzak@redhat.com>
Wed, 30 Jul 2008 10:39:04 +0000 (12:39 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Aug 2008 09:54:13 +0000 (11:54 +0200)
commit0c723f3490df9ee9a5e133de374a06b06fdad76f
tree33e73b0779af1ef6880dcce6fbe95bdde968d94a
parent55a4a75ca09173264a622a1e0b7e0537806ed526
scriptreplay: new implementation is out-of-sync

Reproduction steps:

1. Run "script -t 2>timing".
2. When the prompt comes up, hit return.
3. New prompt. Wait several seconds, then type "true" and hit return.
4. Repeat (3) as desired, then exit scripted shell.
5. Run "scriptreplay timing".

You'll find on the replay that, rather than waiting several seconds
between the prompt and true, the wait will actually occur after the
first "t" of true.

Reported-by: Micah Cowan <micah@cowan.name>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/scriptreplay.c