rcvar function in rc.subr

Florent Thoumie flz at FreeBSD.org
Sun Nov 26 06:14:16 PST 2006


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.

-- 
Florent Thoumie
flz at FreeBSD.org
FreeBSD Committer


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20061126/59c09f4e/signature.pgp


More information about the freebsd-rc mailing list