From owner-freebsd-current Wed Nov 10 7:37:22 1999 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id CC5A2151EB for ; Wed, 10 Nov 1999 07:37:04 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p21-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.150]) by peach.ocn.ne.jp (8.9.1a/OCN) with ESMTP id AAA23030; Thu, 11 Nov 1999 00:36:50 +0900 (JST) Message-ID: <3829908C.7BDA9DD@newsguy.com> Date: Thu, 11 Nov 1999 00:34:36 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: A.Leidinger@WJPServer.CS.Uni-SB.de Cc: archie@whistle.com, current@FreeBSD.ORG Subject: Re: "man" reads /etc/rc.conf? References: <199911101247.NAA01228@work.net.local> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A.Leidinger@WJPServer.CS.Uni-SB.de wrote: > > >> (101) netchild@ttyp2 > man -k adadadad > >> cat: /etc/isdn/connect.parameters: Permission denied > >> adadadad: nothing appropriate > >> > >> (102) netchild@ttyp2 > grep cat /etc/rc.conf.local > >> spppconfig_isp0="`cat /etc/isdn/connect.parameters`" ^^^ Calling programs from any of the rc.conf files is considered evil and it's looked down on. > /usr/bin/apropos contains: > ---snip--- > # If possible check global system configuration file for additional > # man locales installed > if [ -r /etc/defaults/rc.conf ] ; then > . /etc/defaults/rc.conf > elif [ -r /etc/rc.conf ] ; then > . /etc/rc.conf > fi > ---snip--- > > and /etc/defaults/rc.conf: > ---snip--- > man_locales="NO" # space separated list of man locales (or NO) > ---snip--- > > Do we have to live with this or is it subject to change (it gives me a > bad taste to have rc.conf sourced everytime apropos is used)? What about > making it an environment variable (just set it in login.conf) or > enhancing /etc/manpath.config (BTW: everithing is named *.conf except > manpath.config)? Apropos is not the fastest of the programs. Sourcing rc.conf most likely takes a very small time compared to it's total execution time. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org What y'all wanna do? Wanna be hackers? Code crackers? Slackers Wastin' time with all the chatroom yakkers? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message