From owner-freebsd-arch@freebsd.org Sun Feb 26 23:49:17 2017 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D505FCEE257 for ; Sun, 26 Feb 2017 23:49:17 +0000 (UTC) (envelope-from pstef@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5418CB0; Sun, 26 Feb 2017 23:49:17 +0000 (UTC) (envelope-from pstef@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1403) id 0FF275C0C; Sun, 26 Feb 2017 23:49:17 +0000 (UTC) Date: Mon, 27 Feb 2017 00:49:17 +0100 From: "Piotr P. Stefaniak" To: Baptiste Daroussin Cc: Warner Losh , Bob Bishop , "freebsd-arch@freebsd.org" Subject: Re: I want to remove troff output support from indent(1) Message-ID: <20170226234917.GB23029@freefall.freebsd.org> References: <20170226190654.GA23029@freefall.freebsd.org> <20170226232855.zkvymewnnbjhhfqk@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20170226232855.zkvymewnnbjhhfqk@ivaldir.etoilebsd.net> User-Agent: Mutt/1.7.1 (2016-10-04) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2017 23:49:17 -0000 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 wrote: >> > Hi, >> > >> >> On 26 Feb 2017, at 19:06, Piotr P. Stefaniak 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.