]> 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 17:15:45 +0000 (19:15 +0200)
commitf3955b3108f588e82f0edc596d516418b2a99f49
tree196d36f55e03ceb4f2faa393aaf20cfb47e3e54e
parent7d8f0c1f993d0104d1501f6d903702a5e808b3e2
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