freebsd-skq/usr.bin/tail
delphij aa38886281 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
2005-02-04 14:01:06 +00:00
..
extern.h Add support for following more than one file i.e. 2004-11-04 19:18:19 +00:00
forward.c Save last displayed file by having the "last" pointer global and save it 2005-02-04 14:01:06 +00:00
Makefile Bump WARNS to 4 as this seems OK on the alpha now. 2005-01-10 20:22:37 +00:00
misc.c Cast size_t to off_t before adding them to avoid warnings on the alpha. 2005-01-10 20:19:46 +00:00
read.c
reverse.c Cast size_t to off_t before adding them to avoid warnings on the alpha. 2005-01-10 20:19:46 +00:00
tail.1 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
tail.c Add support for following more than one file i.e. 2004-11-04 19:18:19 +00:00