Seeking on a UNIX pipe

tac is cat spelled backwards it prints the contents in reverse order.

How is input to a pipe reversed?

It’s written to a seekable tempfile first: github.com/coreutils/.../tac.c

(This post is a mirror of a Hacker News comment I wrote.)