[EMAIL PROTECTED] 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)
[EMAIL PROTECTED]
[EMAIL PROTECTED]

        What y'all wanna do?
        Wanna be hackers? Code crackers? Slackers
        Wastin' time with all the chatroom yakkers?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to