From owner-freebsd-questions@freebsd.org Sun Aug 6 12:14:30 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02991DD6954 for ; Sun, 6 Aug 2017 12:14:30 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CCFBB83BDB for ; Sun, 6 Aug 2017 12:14:29 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1502021662; x=1504613662; h=x-thread-info:date:from:to:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; bh=nDAGYqoV4IEEq94dGpWlYMfOG03QqlNC3+lOmyiAOD8=; b=OJCKW7oVtBNK+2JmhxyhIGDOY+MXyxrOSmN3EQJR9YU3CGFHFOUiUaXh8ofqp38QGdK3L2tDpLAGwJJ9u6elJy8thCgpBxf9+NZ5v2Se1fXyLAio06EMshJ3KywmAx50sVHU0DIGBZcuJRLbVbk65Mfqqh3Lc2oH1DCGaqbK5JY= X-Thread-Info: NDI1MC4xMi5kOTAwMDAwMDg4OTUwMy5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r3.us-east.aws.in.socketlabs.com (r3.us-east.aws.in.socketlabs.com [54.165.229.15]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 6 Aug 2017 08:14:18 -0400 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r3.us-east.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 6 Aug 2017 08:14:24 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1deKSt-000JeH-Py for freebsd-questions@freebsd.org; Sun, 06 Aug 2017 12:15:27 +0000 Date: Sun, 6 Aug 2017 13:14:10 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Is quoting necessary in /etc/rc.conf ? Message-Id: <20170806131410.6766474dc2b228e06742cff9@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2017 12:14:30 -0000 On Sun, 6 Aug 2017 11:00:03 +0000 Manish Jain 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