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