From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wonkity.com (wonkity.com [67.158.26.137]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id f0012a5f; for ; Mon, 31 Aug 2015 20:43:18 -0500 (EST) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id t811hG3i037281 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 31 Aug 2015 19:43:16 -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 t811hDSX037269 for ; Mon, 31 Aug 2015 19:43:15 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 31 Aug 2015 19:43:12 -0600 (MDT) From: Warren Block To: discuss@mdocml.bsd.lv Subject: File type detection Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 31 Aug 2015 19:43:16 -0600 (MDT) Just tonight, it was pointed out on IRC that 'man /bin/sh' on FreeBSD failed spectacularly. Unfortunately, 'mandoc /bin/sh' also fails, although not as badly. Is it feasible to use file(1) to check a file's type before displaying it? Or maybe to incorporate some of those or similar tests directly into mandoc? -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv