rcvar function in rc.subr

Yar Tikhiy yar at comp.chem.msu.su
Sun Nov 26 04:19:11 PST 2006


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).

-- 
Yar


More information about the freebsd-rc mailing list