cvs commit: src/usr.bin/tail forward.c
Xin LI
delphij at FreeBSD.org
Fri Feb 4 14:01:08 GMT 2005
delphij 2005-02-04 14:01:07 UTC
FreeBSD src repository
Modified files:
usr.bin/tail forward.c
Log:
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
Revision Changes Path
1.38 +8 -6 src/usr.bin/tail/forward.c
More information about the cvs-src
mailing list