Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 1999 00:34:36 +0900
From:      "Daniel C. Sobral" <dcs@newsguy.com>
To:        A.Leidinger@WJPServer.CS.Uni-SB.de
Cc:        archie@whistle.com, current@FreeBSD.ORG
Subject:   Re: "man" reads /etc/rc.conf?
Message-ID:  <3829908C.7BDA9DD@newsguy.com>
References:  <199911101247.NAA01228@work.net.local>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3829908C.7BDA9DD>