rcvar function in rc.subr

Yar Tikhiy yar at comp.chem.msu.su
Sun Nov 26 10:16:31 PST 2006


On Sun, Nov 26, 2006 at 02:13:39PM +0000, Florent Thoumie wrote:
> Yar Tikhiy wrote:
> > On Thu, Oct 19, 2006 at 03:33:23PM +0100, Florent Thoumie wrote:
> >> Does anybody have a clue why /etc/rc.d/foo rcvar prints a leading '$'
> >> before the variable name? Doesn't make much sense with /bin/sh.
> > 
> > Sorry for the late reply.  According to the CVS history, the code
> > was just imported from NetBSD.  Perhaps it's too late to change it
> > as people are likely to have workarounds for it already.  Of course,
> > $foo_enable=YES looks ugly and has a different meaning in sh(1).
> 
> Well, it may be worth fixing in HEAD even if we don't MFC the change.

Then just do it!  Well, if no serious objections appear in a
reasonable period of time.  Personally, I'm happy with the change
-- I'm just not enough unhappy with the current bogosity. :-)

-- 
Yar


More information about the freebsd-rc mailing list