From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id pBED8lvJ031104 for ; Wed, 14 Dec 2011 08:08:48 -0500 (EST) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 0D634156B82 for ; Wed, 14 Dec 2011 14:08:42 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([130.237.32.175]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id ceM34+Flu5US for ; Wed, 14 Dec 2011 14:08:40 +0100 (CET) X-KTH-Auth: kristaps [193.10.49.5] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: tech@mdocml.bsd.lv Received: from ctime.hhs.se (ctime.hhs.se [193.10.49.5]) by smtp-1.sys.kth.se (Postfix) with ESMTP id A4AB4156B77 for ; Wed, 14 Dec 2011 14:08:39 +0100 (CET) Message-ID: <4EE89FD6.7040908@bsd.lv> Date: Wed, 14 Dec 2011 14:08:38 +0100 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (X11; OpenBSD amd64; rv:5.0) Gecko/20110805 Thunderbird/5.0 X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: tech@mdocml.bsd.lv Subject: Re: Respect MACHINE. References: <4EE87E0F.3010008@bsd.lv> <20111214113647.GA29912@iris.usta.de> In-Reply-To: <20111214113647.GA29912@iris.usta.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit >> The enclosed small patch respects the MACHINE variable > > I hate environment variables in general (as opposed to variables > used inside programs, like those in daily(8) and security(8)). > I think looking at them is a bad idea in most cases. > They change behaviour of programs, and as a user, > it is very easy to forget about variables one has set, > and it may even happen that the administrator changes > variables behind one's back (in /etc/profile). > > Whenever a program looks at a variable, it should be checked > whether looking at the variable can be removed, and i'm OK with > keeping it only when there are very strong reasons to do so. > > Adding new variables is almost never OK with me. > > Keeping MANPATH is probably OK because it has been around so > long and many people are probably used to it; removing it would > be likely to cause more confusion than continuing to support it. > But adding to that - no, i hate the idea. > > Regarding MACHINE, i believe that variable should not be used at > all except for technical purposes, like in build systems. > It should not affect which documentation i can find! > If i had a VAX, i would certainly often use apropos(1) on i386 > or amd64 to search for VAX documentation, just because it's > faster, and i would not want to fiddle with the environment. > >> as stipulated in man(1). > > I fear in man(1), that may have to be kept, for historical reason, > though i do think it's a bug that man -aw does not ignore MACHINE. > Then again, unless it's stipulated by POSIX, maybe it should be > removed completely. Why would anybody tweak the shell to display > manuals for the wrong architecture by *default*? If i want to see > one specific manual for a different architecture, i will use -S. > >> This isn't mentioned in apropos(1) or whatis(1), > > No, because such bloat is absent there, as it should. > >> but it makes sense to be consistent with man(1)'s environment >> (MANPATH, etc.). Thoughts? > > Please drop that patch, without replacement. Hi Ingo, Well! I've no problems with dropping this, of course. Just trying to keep the manpage tools consistent. In my opinion, it should really be dropped from man(1) as well... it seems totally superfluous, no? Thanks for the look! Kristaps -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv