Is quoting necessary in /etc/rc.conf ?

Steve O'Hara-Smith steve at
Sun Aug 6 12:14:30 UTC 2017

On Sun, 6 Aug 2017 11:00:03 +0000
Manish Jain <bourne.identity at> wrote:

> Hi,
> On my system, it works whether I put either of the following in rc.conf:
> xyz_enable="YES"
> Or,
> xyz_enable=YES
> Just wished to check whether an unquoted YES is completely equivalent 
> (and accepted) as a quoted YES ?

	Since rc.conf is sourced into shell scripts (/bin/sh) what you're
doing in it is setting shell variables, so the quotes are only really
needed if there are spaces in the value (which you could also escape).

Steve O'Hara-Smith <steve at>

More information about the freebsd-questions mailing list