From owner-freebsd-questions@freebsd.org Thu May 4 01:49:58 2017 Return-Path: Delivered-To: freebsd-questions@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 C82DED5A429 for ; Thu, 4 May 2017 01:49:58 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A9A01736 for ; Thu, 4 May 2017 01:49:58 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v441nu7V056532 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 3 May 2017 19:49:56 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v441nuc8056529; Wed, 3 May 2017 19:49:56 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 3 May 2017 19:49:56 -0600 (MDT) From: Warren Block To: derek thomas cc: "freebsd-questions@freebsd.org" Subject: Re: Man Page BSD-ism And Terminal Width In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (BSF 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Wed, 03 May 2017 19:49:56 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2017 01:49:58 -0000 On Wed, 3 May 2017, derek thomas wrote: > Not all man pages on my system fit the width of my terminal. The MANWIDTH variable as described in man(1) should be the solution, but I've discovered that many if not all man page sources in base at least don't seem to respect the variable. As though width was hard-coded. Other sources do respect it, such as /usr/share/man/man1/nroff.1.gz, and notably others in ports. So I suppose there is some FreeBSD-ism going on in the source format. > > I ruled out my processing pipeline. > nroff -man [sourcefile] demonstrates the same differences in files. > > Should I dig further for a proper man-macro code fix? Or am I overlooking something? Is this expected behaviour? setenv MANWIDTH tty works here in csh, and export MANWIDTH 200 in sh. Both tested with 'man ls'. I don't remember much of anything about nroff, please test with mandoc or groff.