From owner-freebsd-rc@FreeBSD.ORG Thu May 31 05:41:28 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 823B9106564A for ; Thu, 31 May 2012 05:41:28 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from opti.dougb.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 91E7115F9BE; Thu, 31 May 2012 05:41:27 +0000 (UTC) Message-ID: <4FC70487.7040102@FreeBSD.org> Date: Wed, 30 May 2012 22:41:27 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120506 Thunderbird/12.0.1 MIME-Version: 1.0 To: d@delphij.net References: <4FC694C9.9040501@delphij.net> In-Reply-To: <4FC694C9.9040501@delphij.net> X-Enigmail-Version: 1.5pre OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org, Xin Li Subject: Re: Script style: ` or $()? X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2012 05:41:28 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 05/30/2012 14:44, Xin Li wrote: > Hi, > > Is there any rule of style for new code that ` or $() is preferred? No. If you're creating a brand new file, do whatever you want. If you're editing an existing file, the common rule of "follow the style in the file" applies. Personally, I always use backticks to more easily differentiate from $((math)) operations, but (again, personally) I have no objection to new code using $(). hth, Doug - -- This .signature sanitized for your protection -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBCAAGBQJPxwSHAAoJEFzGhvEaGryEBy4H/3natkwm1Q8GnYBWHlTFH1/p P96zdoS93UjFdNIv9lKS1Z3BKJdIYOkRE1pJeXRgboM5ZZ+Ujl+hjFgxzIk5RrAH zc9lr6sa20GGkznLBfGBfpkJmJHIb11EmG5d37zEgGgPQyP9HbJ0NhaVq9cmYyGC XgJJMgwKiwB28AFeDirRbO7CkhIZZ+PR6dzTBdNarl3hYoCHzv8uM4zXYxp5VcvM jheGSPXE2Lp6Z45SQ8q/MKn5AKPTzchV8rP+VPL0WqbbCWC/GgQJO2J338KXXCYE 9DAc+DcKI/HHp738O5GC3A/H/pkrLIcGj75oNHQKWC4r8hFKq03EBpB+cPkLzXI= =yIyS -----END PGP SIGNATURE-----