From owner-freebsd-questions@freebsd.org Thu May 4 01:25:31 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 3C82BD5CC6A for ; Thu, 4 May 2017 01:25:31 +0000 (UTC) (envelope-from derekmthomas@outlook.com) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-oln040092007045.outbound.protection.outlook.com [40.92.7.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04F471C08 for ; Thu, 4 May 2017 01:25:30 +0000 (UTC) (envelope-from derekmthomas@outlook.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zCF2kQH6aQyc22YeuJJsJtq29OdSYUeJIW/g0KmZ2HY=; b=WWYWZYuMZGMJXqDHDX3iKk7R0zXzwHV/V24QhknetbpTNdgTFRuDkG868OCCz/JTAg2PRg8rdlgdQO8xulElyRbg41syxi6pe5WfBAIg5N/mRk2cMsqpNLo/nmKZ5bOXnWWMqrkI+YfQD+7Fse7RfsOOiMjLb7SDBn+w12QOOwrerFlIdr4G+YSJSOTYJHndETMm+CbuZ6zumUFUepeV+OOtsd+Swxn1Z3GabxCm6xSUXUdkI9TDozYg1CTkfBH1jBne2FwqqkpdFF5Jtih8P7PPoFDNhz35vNm7Ov8qxUPbmYRhxmEaePyTqblF0X/OMMKTX0tX1S+nCvmrepE/fw== Received: from CO1NAM03FT026.eop-NAM03.prod.protection.outlook.com (10.152.80.59) by CO1NAM03HT208.eop-NAM03.prod.protection.outlook.com (10.152.80.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9; Thu, 4 May 2017 01:25:29 +0000 Received: from DM5PR22MB0604.namprd22.prod.outlook.com (10.152.80.55) by CO1NAM03FT026.mail.protection.outlook.com (10.152.80.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.9 via Frontend Transport; Thu, 4 May 2017 01:25:24 +0000 Received: from DM5PR22MB0604.namprd22.prod.outlook.com ([10.172.191.148]) by DM5PR22MB0604.namprd22.prod.outlook.com ([10.172.191.148]) with mapi id 15.01.1075.010; Thu, 4 May 2017 01:25:24 +0000 From: derek thomas To: "freebsd-questions@freebsd.org" CC: Frank Steinborn , Frank Steinborn Subject: Re: Man Page BSD-ism And Terminal Width Thread-Topic: Man Page BSD-ism And Terminal Width Thread-Index: AQHSxDorr0xomeej1Eewt+uvjK/ivaHjWCEAgAAKBdU= Date: Thu, 4 May 2017 01:25:24 +0000 Message-ID: References: , <20170504004932.GA31346@krenn.local> In-Reply-To: <20170504004932.GA31346@krenn.local> Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=outlook.com; x-incomingtopheadermarker: OriginalChecksum:1A6D74F6A655E689246C6DB965D673D34F6E65314D4D9B3F34AC67436E32D953; UpperCasedChecksum:9FE92B580DA7D6C3E5F5789728B1B80490E00E16B6E8B6F066CCC84D43532FF8; SizeAsReceived:8317; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [AxDsbKqyeuh2sVPdo6YOm1VoEDofX5GI] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CO1NAM03HT208; 5:OTGN2+OL6K+DOl+TliYtN06GFPb4IQ45r2kwj8lRsdJvOldSLiTrPhtRh5MaxqsYBx+wnB6WWGX0doM3azODClKNuOQWu5ZIcFFPlTwor727h7ubRs5on1fQ6q6+WEeEthrsunj35Sh29EhDceC+dA==; 24:LEMdzNDStuLLy9Nb8hhaJ9NETHHWKxbbUSZo/hhn3MQtwjZGvRVY6KXJUoQdfilRzZ4lROh4IIZHESUe4KnNKDQ4U+7IKOYVr/0uGvxAFws=; 7:AooZpQhg2G7isIqLb9kPxveNWUQ7bgRv+YlmzNQBwqc0dAxzutcWu9l/hnQ+CO6EDMWt42L2xQjQ63nlGuZdSQoZctv0ezCKjkM/x4+qXpCMvTb1Nb5F3hK4OCvp+t3VfOOZAF6PS822ZuMSf7xxtWKY/nWErPnc+nE5VOZEMrHzLkFgESdd40WkQcE8wU98pO7ft1rd6vKIlaxrndQMC0Hm7uf+KlGbS5G19GlfphSfs0V7Ql2kpr/oWqrMwfwDiSnTD7C5fkPtmO34aRY1q66c76Uq9aVzlpwBxXBEZShM4lzSYSGNchZ9Tr8lU0Mt x-incomingheadercount: 46 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:CO1NAM03HT208; H:DM5PR22MB0604.namprd22.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 841fd299-2e57-42e0-c70d-08d4928c7058 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322274)(1601125374)(1603101448)(1701031045); SRVR:CO1NAM03HT208; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:CO1NAM03HT208; BCL:0; PCL:0; RULEID:; SRVR:CO1NAM03HT208; x-forefront-prvs: 02973C87BC spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 May 2017 01:25:24.3555 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM03HT208 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:25:31 -0000 > On May 3, 2017, at 18:49, Frank Steinborn wrote: >=20 > derek thomas wrote: >> Not all man pages on my system fit the width of my terminal. The MANWIDT= H variable as described in man(1) should be the solution, but I've discover= ed that many if not all man page sources in base at least don't seem to res= pect the variable. As though width was hard-coded. Other sources do res= pect it, such as /usr/share/man/man1/nroff.1.gz, and notably others in port= s. So I suppose there is some FreeBSD-ism going on in the source format. >>=20 >> I ruled out my processing pipeline. >> nroff -man [sourcefile] demonstrates the same differences in files. >>=20 >> Should I dig further for a proper man-macro code fix? Or am I overlookin= g something? Is this expected behaviour? >>=20 >> Thanks >=20 > Hi, >=20 > can you give an example of a manpage in base that does not respect > MANWIDTH? I just tried a few that came into my mind and all worked with > MANWIDTH=3Dtty. >=20 > Best regards, > Frank # No MANPATH-sensitive pages: $ for f in $(basename /bin/*); do read; MANPATH=3D42; man $f; done=20 # ...Some here though: for f in $(find /usr/src/contrib -name '*.[1-8]'; do printf "Try %s or CTRL= -C:" $f; read; MANPATH=3D42; man $f; done Thanks, -Derek=