Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 00:49:17 +0100
From:      "Piotr P. Stefaniak" <pstef@freebsd.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        Warner Losh <imp@bsdimp.com>, Bob Bishop <rb@gid.co.uk>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: I want to remove troff output support from indent(1)
Message-ID:  <20170226234917.GB23029@freefall.freebsd.org>
In-Reply-To: <20170226232855.zkvymewnnbjhhfqk@ivaldir.etoilebsd.net>
References:  <20170226190654.GA23029@freefall.freebsd.org> <E6450466-1323-4A72-A78F-6BCCB99DC108@gid.co.uk> <CANCZdfq6=7i3w5yGwgQi22VddhCYAJo9nEHuZMOpH8Rr7BKxKA@mail.gmail.com> <20170226232855.zkvymewnnbjhhfqk@ivaldir.etoilebsd.net>

index | next in thread | previous in thread | raw e-mail

On 2017-02-27 00:28:55, Baptiste Daroussin wrote:
>On Sun, Feb 26, 2017 at 03:08:00PM -0700, Warner Losh wrote:
>> On Sun, Feb 26, 2017 at 1:59 PM, Bob Bishop <rb@gid.co.uk> wrote:
>> > Hi,
>> >
>> >> On 26 Feb 2017, at 19:06, Piotr P. Stefaniak <pstef@freebsd.org> wrote:
>> >>
>> >> indent, the C source reformatting tool, has a -troff option to produce
>> >> roff output.
>> >>
>> >> I have a few issues with it:
>> >> 1) it doesn't work. When I view the resulting file with nroff(1) piped
>> >> to more(1) [etc]
>> >
>> > From man indent:
>> >
>> > "-troff          Causes indent to format the program for processing by
>> >                      troff(1)"
>> >
>> > NB troff. Likely it was always broken with nroff.
>>
>> I know that I used indent from this time with troff output to print
>> things that looked OK. It had to be troff, because nroff didn't work
>> with the laser printer that we had...
>>
>> I have no trouble removing it, but I have first hand experience with
>> it working back in the day.
>>
>It seems that what broke is that if output of indent -troff was to be passed in
>a troff -mindent command line. meaning that there use to be a indent.tmac
>somewhere but neither groff, neither heirloom roff seems to be providing it at
>all a indent.tmac or equivalent.
>
>So I doubt it ever worked on FreeBSD. I can see online some documentation
>speaking about (on oracle website) and even some crazy french website saying it
>worked with groff, but can't find the file in groff history either

The troff output was invented at Sun and the online docs for some
post-SunOS operating system include this:
The usual way to  get  a  troffed listing is with the command
	  	       indent -troff program.c | troff -mindent

The indent manpage in FreeBSD 1.0 already lacks that information and
troff -mindent complains about not being able to find the macro file.
So I guess the file did exist on SunOS and was supposed to be imported
into 4.3BSD together with the feature, but wasn't.


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170226234917.GB23029>