Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 2025 09:43:59 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        freebsd-current@freebsd.org
Subject:   Re: a question about /boot/loader.conf
Message-ID:  <CANCZdfr4bsckiB6yQdYC8mCwhm4AkJVCArDObHz0u2JgCYeD9w@mail.gmail.com>
In-Reply-To: <aH5Pc6zCJzf8E0OS@int21h>

index | next in thread | previous in thread | raw e-mail

On Mon, Jul 21, 2025 at 8:32 AM void <void@f-m.fm> wrote:
>
> Hi,
>
> On recent -current, I notice that sysctls with a numerical value
> are not quoted, but those with an alpabetical one are.
>
> like this:
>
> security.bsd.allow_destructive_dtrace=0
> filemon_load="YES"
>
> Which is the Correct Way? All quoted, or "it doesn't matter"?

Doesn't matter, though quotes are needed for multi-word values. They
are otherwise optional. There was a brief period of time where the lua
loader didn't completely honor this, and lots of people popped up with
complaints :)

It all goes back to the 4th command line and the weird ways we bent it
to do our loader.conf.

Warner


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfr4bsckiB6yQdYC8mCwhm4AkJVCArDObHz0u2JgCYeD9w>