Re: HEADS UP: set_rcvar() removed from rc.subr

From: Doug Barton <dougb_at_FreeBSD.org>
Date: Sat, 14 Jan 2012 13:03:01 -0800
On 01/14/2012 06:44, Jilles Tjoelker wrote:
> Why must the 2-argument form of set_rcvar die at the same time? It is
> used very differently and does not cause unnecessary forks. Instead, it
> is called in the same shell environment to define additional rc.conf
> variables that have defaults and are shown in '<script> rcvar'.

Because it can just as easily be accomplished the same way that all the
other rcvar-related things are:

rcvar=foo_enable
: ${foo_enable:=NO}

And before you spend too much time bemoaning its demise, quick question
... how many places was it used?


Doug

-- 

	You can observe a lot just by watching.	-- Yogi Berra

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/
Received on Sat Jan 14 2012 - 20:03:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:23 UTC