David Clissold - 2004-01-22

I see the same behavior:
$ tail -f /tmp/abcdef.log |grep abcdef
abcdef
abcdef
^C$ tail -f /tmp/abcdef.log |grep abcdef |grep abcdef
^C$ tail -f /tmp/abcdef.log |unbuffer grep abcdef |grep abcdef
^C$ cat /tmp/abcdef.log
abcdef
ghijkl
abcdef
$

Because of the "-f" of course, I had to ctrl-C to stop each.
I tried it on a Linux system and got the same result.
(It had expect-5.38.0, a slightly newer version). It does
seem to be a bug in unbuffer, given the description.
Actually the manpage says to use it on every command in the
pipeline except the last one, but that gave the same result.

You might try the newsgroup "comp.lang.tcl", which is where
the expect website says to go for help. If someone has an
answer or a fix, we can try to get it added to our image.