Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!philabs!sdcsvax!sdcrdcf!trw-unix!trwspp!wartik
From: wartik@trwspp.UUCP
Newsgroups: net.unix-wizards
Subject: Diversions in Nroff
Message-ID: <53@trwspp.UUCP>
Date: Tue, 31-May-83 16:06:27 EDT
Article-I.D.: trwspp.53
Posted: Tue May 31 16:06:27 1983
Date-Received: Tue, 7-Jun-83 02:08:24 EDT
Lines: 20

Can someone please explain to me the behavior of nroff on the following
file?

	% cat foo
	.di XX
	hi there
	.di
	% nroff foo
	(66 blank lines)
	hi there
	(64 blank lines)
	%

Diversions are supposed to swallow up text, right?  This example
apparently is producing two pages of text, with "hi there" at the top
of the second page.  Why is "hi there" being printed at all?  Why are
there two pages?  We have both System III and 4.1BSD, and I've run this
file through both versions of nroff, with identical results.  Is this a
bug, or an esoteric property of diversions?

			Thanks in advance,
				-- Steve Wartik
				{decvax,ucbvax}!trw-unix!trwspp!wartik