Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2017 13:14:10 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Is quoting necessary in /etc/rc.conf ?
Message-ID:  <20170806131410.6766474dc2b228e06742cff9@sohara.org>
In-Reply-To: <VI1PR02MB120082575A858DA8685A40A0F6B40@VI1PR02MB1200.eurprd02.prod.outlook.com>
References:  <VI1PR02MB120082575A858DA8685A40A0F6B40@VI1PR02MB1200.eurprd02.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 6 Aug 2017 11:00:03 +0000
Manish Jain <bourne.identity@hotmail.com> 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@sohara.org>



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