Hello!
Consider a service whose start-up is controlled by a variable in
/etc/rc.conf:
food=YES
Then, the output of `service food rcvar' is:
# food
$food=YES
I wonder why this choice has been made, instead of
# food
food=YES
This second version would also reproduce the shell syntax. I do not k
On dic 16 19:43, Rocky Hotas wrote:
>
> In FreeBSD, for example, the trailing `$' is absent.
[...]
> The trailing character `$' appears since the first revision where such a
Sorry, I used the word "trailing", but I was meaning the opposite: the `$'
at the beginning of the variable.
Rocky
I agree the $ dollar sign should not be there in the rcvar output.
(I have wondered the same. FreeBSD also had the dollar sign long ago for
rcvar and the BSD Certification study guide specifically called it out
"do not use string/dollar sign in front".)