From owner-freebsd-rc@FreeBSD.ORG Fri Jun 1 04:15:53 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41D8E106564A for ; Fri, 1 Jun 2012 04:15:53 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-gh0-f172.google.com (mail-gh0-f172.google.com [209.85.160.172]) by mx1.freebsd.org (Postfix) with ESMTP id DA4C48FC0A for ; Fri, 1 Jun 2012 04:15:51 +0000 (UTC) Received: by ghbg16 with SMTP id g16so1584220ghb.17 for ; Thu, 31 May 2012 21:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=z0JAlPkAMdB+2+03aZ6L0NOS0b24YAXUDdflkM5XKuM=; b=aEBKP750pSBm8RXKIIhR1AOr0Um4UGkElYP78rHCZHUpxMGJkVN1rsZ723zH245pFS sk0cmiK5ZkajJU1scz4cRIAMraekc21CHXOOI2rvi4O00zVc94FClYuqlX3aEl0BxHNa 00EWtoUtRKfsNTsZUPx6RICNFKJmtJYAIDPg8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=z0JAlPkAMdB+2+03aZ6L0NOS0b24YAXUDdflkM5XKuM=; b=DrcRzMdAnrB+37el0ALcGYg2dQaGxbW+Jiuc2MLA9n0tHuczhnWuJt32+7SC4fj5hd XNzOrgh3mHUu1DWxB5zNPzYseXq0qC3bRvfUdaYX8Tj9kvR1TiOY///17x1gBUFPrc56 NZMHmO7BON5EHPHyaLPBLfkOo5+Wg95wXk0hnwXezQWIwhOi/ipzSogc6nv3jl+/wJuU nUVkQ0VR44FB3VK6GkwrK6y/r/r0g2MZBUUbARHx7uKiz6JTrMmSeFjxduNwBCwiL6oW CNZV8VrKGoP3S31JKtKqEWQmTaJBt+MxkXszAn76KbUPWBGlcngYYHhSWGWcpBVEu4ID BzkA== Received: by 10.50.135.1 with SMTP id po1mr109412igb.67.1338524151062; Thu, 31 May 2012 21:15:51 -0700 (PDT) Received: from DataIX.net (24-247-238-117.dhcp.aldl.mi.charter.com. [24.247.238.117]) by mx.google.com with ESMTPS id fv9sm1201237igc.8.2012.05.31.21.15.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 May 2012 21:15:50 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q514FlcA018553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 1 Jun 2012 00:15:47 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jh@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q514FlZx018552; Fri, 1 Jun 2012 00:15:47 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Fri, 1 Jun 2012 00:15:47 -0400 From: Jason Hellenthal To: Doug Barton Message-ID: <20120601041547.GB97671@DataIX.net> References: <4FC694C9.9040501@delphij.net> <4FC81FC2.1020307@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <4FC81FC2.1020307@FreeBSD.org> X-Gm-Message-State: ALoCoQlihOqULVoP9os+Y5WlF1I3WQzko+l587Xb+n9Yjjh9xL3HdhfnqOemi6lx5LR3gIbanJmN Cc: d@delphij.net, freebsd-rc@freebsd.org 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: Fri, 01 Jun 2012 04:15:53 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 31, 2012 at 06:49:54PM -0700, Doug Barton wrote: > On 5/31/2012 2:29 PM, Chris Rees wrote: > > Seems that either no preference or $() is the rule, >=20 > I not only wouldn't say that, I didn't when I responded previously. :) >=20 > > but if you're > > documenting a code example that is designed to be copy/pasted to a > > shell then you should use `` -- otherwise you make life very difficult > > for t?csh users. >=20 > Valid point, except that he specified that he is writing an rc.d script > (which makes sense considering the list ...). >=20 Writing code to be copy and pasted is a bad idea anyway. It just invites unsuspecting users that do not understand what ramifications can come =66rom running code they don't understand. A simple slip of the mouse could cause someone great grief. Lets not forget too... some terminals/web browsers and other forms of text transportation can copy in different ways, inserting control characters that you don't see the results before running. But this is an rc.d example soooo $() should be fine as its reccomended more often than not. --=20 - (2^(N-1)) --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJPyEHyAAoJEBSh2Dr1DU7W/UoH/j2pWPz9XnnjNX8RlgxNw6xh JoF63lv++ff+KaV/f21jf+a+eL01L5S299fHYqiat2W0brgkybBhhWIoiIRwBWxt op/qVECl/KAkZ+nbLwX1JodvDqbq6vii0E6vZ6qZHkAAKQUFgJDaDTX3swPUMwd9 Jz6+sEKHIWQPixqL4RUak9rgvvkDK404w/yzosXZtn5G4ccbXm58QmXEZbZE3KC8 mmspf+TBvbtcKzCqoJ/6D48FT0Ka/ZxXpui5NFXTEYmNKRW4AMYGVlnfm5WX8U9V StqOAFISAdZkVtLY8VW5AXT92Qe9sJSL1VgaJs3Rvv110G8v9XoUPqq1k1QFCfY= =c9ca -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--