From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from www.sonnenberger.org (www.sonnenberger.org [92.79.50.50]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o9OIEU2M004504 for ; Sun, 24 Oct 2010 14:14:31 -0400 (EDT) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id F1EF6667C6 for ; Sun, 24 Oct 2010 20:14:23 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1000) id 48E57117F18; Sun, 24 Oct 2010 20:15:02 +0200 (CEST) Date: Sun, 24 Oct 2010 20:15:02 +0200 From: Joerg Sonnenberger To: tech@mdocml.bsd.lv Subject: Re: implement .so Message-ID: <20101024181502.GA13039@britannica.bec.de> Mail-Followup-To: tech@mdocml.bsd.lv References: <20101024164057.GF20876@iris.usta.de> <20101024164945.GA25275@britannica.bec.de> <20101024172914.GH20876@iris.usta.de> <20101024173857.GA18657@britannica.bec.de> <20101024180019.GI20876@iris.usta.de> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101024180019.GI20876@iris.usta.de> User-Agent: Mutt/1.5.20 (2009-06-14) On Sun, Oct 24, 2010 at 08:00:19PM +0200, Ingo Schwarze wrote: > * It would need to be done for both ports and Xenocara. > * It would need to be done in each operating and ports system > using mandoc; on a medium term, that may amount to at least > four systems (OpenBSD, NetBSD, FreeBSD, DragonFly BSD). Having a single script like soelim (or whatever you want to call it) minimizes the redundancy. It should be trivial to hook up in any of the above systems. Attached is an AWK script that prints the link target to stdout if it unique or returns failure otherwise. Shouldn't be hard to polish so that it takes a list of files in stdin and does the magic, potentially including things like using zcat etc. > * From a maintenance perspective, .so does not seem that bad: > it's strictly local in main.c without tentacles into any libs. > * It would also put the code where it belongs: .so is a roff > feature, not a build system feature. Actually, there are a number of useful cases where you have to fix it up already. Consider using compressed man pages by default. That breaks badly with .so. > * All people i'm asking tend to say i should not worry that > much about the my security concerns, maybe i'm indeed > excessively paranoid in that respect. Allow path names relative to the current directory and with /../ in them. Joerg -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv