Re: Convention in the output of service rcvar

2020-12-21 Thread Rocky Hotas
On dic 20 21:32, Valery Ushakov wrote: > I have committed the change (revision 1.106). We still refer to rc > variables with the dollar prefix in errors/warnings, but there the > context actually warrants it, kinda, so I decided to leave those > alone. It is reasonable and I definitely agree. T

Re: Convention in the output of service rcvar

2020-12-20 Thread Valery Ushakov
Rocky Hotas wrote: > On dic 17 21:12, David Holland wrote: > >> My guess: someone was thinking in perl by accident and nobody's >> noticed it since, so it hasn't been fixed. > > It's probable, then. Thanks for your feedback, David and Jeremy. > > I would suggest, if possible and if you agree,

Re: Convention in the output of service rcvar

2020-12-19 Thread Valery Ushakov
Valery Ushakov wrote: > David Holland wrote: > >> On Wed, Dec 16, 2020 at 07:43:20PM +0100, Rocky Hotas wrote: >> > # food >> > $food=YES >> >: >> > >> > Is there any reason for that? What do you think? >> >> My guess: someone was thinking in perl by accident and nobody's >> noticed

Re: Convention in the output of service rcvar

2020-12-19 Thread Valery Ushakov
David Holland wrote: > On Wed, Dec 16, 2020 at 07:43:20PM +0100, Rocky Hotas wrote: > > # food > > $food=YES > >: > > > > Is there any reason for that? What do you think? > > My guess: someone was thinking in perl by accident and nobody's > noticed it since, so it hasn't been fixed. M

Re: Convention in the output of service rcvar

2020-12-17 Thread Rocky Hotas
On dic 17 21:12, David Holland wrote: > My guess: someone was thinking in perl by accident and nobody's > noticed it since, so it hasn't been fixed. It's probable, then. Thanks for your feedback, David and Jeremy. I would suggest, if possible and if you agree, to remove that extra `$' (hoping th

Re: Convention in the output of service rcvar

2020-12-17 Thread David Holland
On Wed, Dec 16, 2020 at 07:43:20PM +0100, Rocky Hotas wrote: > # food > $food=YES >: > > Is there any reason for that? What do you think? My guess: someone was thinking in perl by accident and nobody's noticed it since, so it hasn't been fixed. -- David A. Holland dholl...@netbsd.org

Re: Convention in the output of service rcvar

2020-12-16 Thread Jeremy C. Reed
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".)

Re: Convention in the output of service rcvar

2020-12-16 Thread Rocky Hotas
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

Convention in the output of service rcvar

2020-12-16 Thread Rocky Hotas
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