Searched hist:141279 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10.3-release/usr.bin/tail/
H A Dforward.cdiff 141279 Fri Feb 04 14:01:06 MST 2005 delphij Save last displayed file by having the "last" pointer global and save it
during we show the first file's tail. Instead of:

tarsier% tail -f 1 2
==> 1 <==
foo
bar

==> 2 <==
bar
foo

==> 2 <==
bar2
foo2

Now with this change, we have:

tarsier% tail -f 1 2
==> 1 <==
foo
bar

==> 2 <==
bar
foo
bar2
foo2

While I'm there, move a comment to where it should belong to. Also,
const'ify the "last" static because we will never need to change the
contents it points to.

MFC After: 1 week

Completed in 124 milliseconds