From owner-freebsd-rc@FreeBSD.ORG Mon May 28 11:07:36 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 760FA106564A for ; Mon, 28 May 2012 11:07:36 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5FAE28FC15 for ; Mon, 28 May 2012 11:07:36 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4SB7amK063458 for ; Mon, 28 May 2012 11:07:36 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4SB7Zrc063456 for freebsd-rc@FreeBSD.org; Mon, 28 May 2012 11:07:35 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 May 2012 11:07:35 GMT Message-Id: <201205281107.q4SB7Zrc063456@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org 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: Mon, 28 May 2012 11:07:36 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/167566 rc [rc.d] [patch] ipdivert module loading vs. ipfw rc.d o o conf/166484 rc [rc] [patch] rc.initdiskless patch for different major o kern/165769 rc [rc][jai][ipv6] IPv6 Initialization on external iface o bin/165477 rc [rc] dhclient is run twice o conf/164393 rc [rc.d] restarting netif with static addresses doesn't o conf/163508 rc [rc.subr] [patch] Add "enable" and "disable" commands o conf/163488 rc Confusing explanation in defaults/rc.conf o conf/163321 rc [rc.conf] [patch] allow _fib syntax in rc.conf o conf/162642 rc .sh scripts in /usr/local/etc/rc.d get executed, not s p kern/161899 rc [route] ntpd(8): Repeating RTM_MISS packets causing hi o conf/161107 rc [rc] stop_boot in mountcritlocal usage is incorrect. o conf/160403 rc [rc] [patch] concurrently running rc-scripts during bo o conf/160240 rc rc.d/mdconfig and mdconfig2 should autoset $_type to v o conf/159846 rc [rc.conf] routing_stop_inet6() logic doesn't handle ip o conf/158557 rc [patch] /etc/rc.d/pf broken messages o conf/158127 rc [patch] remount_optional option in rc.initdiskless doe o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/150474 rc [patch] rc.d/accounting: Add ability to set location o o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/123119 rc [patch] rc script for ipfw does not handle IPv6 o conf/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 93 problems total. From owner-freebsd-rc@FreeBSD.ORG Wed May 30 21:44:57 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 D35361065672 for ; Wed, 30 May 2012 21:44:57 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id BB9D88FC19 for ; Wed, 30 May 2012 21:44:57 +0000 (UTC) Received: from delta.delphij.net (unknown [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 4FBB03189; Wed, 30 May 2012 14:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1338414297; bh=KdUqwJ4+Dk1XPFu31ClMVe1PnLuBeEHaZ/VNJU9o/Lo=; h=Date:From:Reply-To:To:CC:Subject; b=zgVQcLFhOyxBBNQMrJ65y4mHN+U0WuStFqiAwHYkNvSfhwQq11Yq3RMEN4WQnG1zU TKJSa9OakDhK7g0npOByEBTnVTGduzEfK9q1+MevZe/uZOGlsjh4wmZ5bYRJKpgy61 nJ1Pbfa0xQ8lJc+1ulThcS65/rxv01qCCRN8OJ5Q= Message-ID: <4FC694C9.9040501@delphij.net> Date: Wed, 30 May 2012 14:44:41 -0700 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: d@delphij.net Subject: Script style: ` or $()? X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net 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: Wed, 30 May 2012 21:44:57 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, Is there any rule of style for new code that ` or $() is preferred? Thanks in advance! Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBCAAGBQJPxpTJAAoJEG80Jeu8UPuzuUUH/RZwPgfKuOHEEv4Ovnl2mJtd zrSfw2WTdcbIbn0z1+F+1qUg7yITnMu8cWz0x/cfwNlFBWd/qXIxoMaLxPdnkyRS qRjQtxEjqKso7cQXf+htnvGiv0tNsSys1to54zeECWSFDteBPS/lu9EVislBCDgL sNPPzHwxkzHP3N/nXBBJJmMEuILIlFbwM1LW+2wBY9rWGpQSmi7V8s1Ad2zXRAQa YzDZyckzUKDoAYOz90YF5P8STq0qxakmI845Tbd7j1cdKU/doVCzzdj6xpCIOtr5 GrboxgMQqnocvIqBwGnK9PwP1dHsVgUGqmhALzHvSt68dQxfZvb3r8YpYOG/+WI= =+cnP -----END PGP SIGNATURE----- From owner-freebsd-rc@FreeBSD.ORG Thu May 31 05:20:10 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 74D9B106566C for ; Thu, 31 May 2012 05:20:09 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mx1.freebsd.org (Postfix) with ESMTP id 272C28FC08 for ; Thu, 31 May 2012 05:20:08 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mail.0x20.net (Postfix) with ESMTP id B3C0D6A6010; Thu, 31 May 2012 07:20:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at mail.0x20.net Received: from mail.0x20.net ([217.69.76.211]) by mail.0x20.net (mail.0x20.net [217.69.76.211]) (amavisd-new, port 10024) with ESMTP id OTLj_2BEgzZi; Thu, 31 May 2012 07:20:07 +0200 (CEST) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 6995D6A6002; Thu, 31 May 2012 07:20:07 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.4/8.14.4) with ESMTP id q4V5K7uJ086854; Thu, 31 May 2012 07:20:07 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.4/8.14.4/Submit) id q4V5K6na086231; Thu, 31 May 2012 07:20:06 +0200 (CEST) (envelope-from lars) Date: Thu, 31 May 2012 07:20:06 +0200 From: Lars Engels To: d@delphij.net Message-ID: <20120531052006.GR39168@e-new.0x20.net> References: <4FC694C9.9040501@delphij.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5vb8QKeSi34BFwx0" Content-Disposition: inline In-Reply-To: <4FC694C9.9040501@delphij.net> X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.2-RELEASE-p6 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: 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: Thu, 31 May 2012 05:20:10 -0000 --5vb8QKeSi34BFwx0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 30, 2012 at 02:44:41PM -0700, Xin Li wrote: > Hi, >=20 > Is there any rule of style for new code that ` or $() is preferred? >=20 > Thanks in advance! I would always go for $(), because you can easily nest it. --5vb8QKeSi34BFwx0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/G/4YACgkQKc512sD3afiy2wCfTVclGWkwmw0z9FH5S4CC/4EN xPQAoMruuH7D0wZENIT+WuvdJHAEIaS8 =azjn -----END PGP SIGNATURE----- --5vb8QKeSi34BFwx0-- 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----- From owner-freebsd-rc@FreeBSD.ORG Thu May 31 15:39:49 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 E66E61065672 for ; Thu, 31 May 2012 15:39:49 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A209B8FC29 for ; Thu, 31 May 2012 15:39:49 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id q4VFYj7Z060297 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Thu, 31 May 2012 09:34:45 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20120531052006.GR39168@e-new.0x20.net> Date: Thu, 31 May 2012 09:34:44 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <9517E9EE-768A-47E9-B2B6-CDD52E0AE94B@bsdimp.com> References: <4FC694C9.9040501@delphij.net> <20120531052006.GR39168@e-new.0x20.net> To: Lars Engels X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Thu, 31 May 2012 09:34:45 -0600 (MDT) Cc: freebsd-rc@FreeBSD.org, d@delphij.net 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 15:39:50 -0000 On May 30, 2012, at 11:20 PM, Lars Engels wrote: > On Wed, May 30, 2012 at 02:44:41PM -0700, Xin Li wrote: >> Hi, >>=20 >> Is there any rule of style for new code that ` or $() is preferred? >>=20 >> Thanks in advance! >=20 > I would always go for $(), because you can easily nest it. My observation is that the project used to use the ` form in its early = days, but as people discover $(), they have migrated to it in general. = The rc scripts, however, seem to prefer the ` form over the $( form 214 = to 37. Warner From owner-freebsd-rc@FreeBSD.ORG Thu May 31 21:29:54 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 352FD106564A for ; Thu, 31 May 2012 21:29:54 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B71128FC16 for ; Thu, 31 May 2012 21:29:53 +0000 (UTC) Received: by bkvi18 with SMTP id i18so1653707bkv.13 for ; Thu, 31 May 2012 14:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=C1oPo3HBBqe3iX6kn6yT1WSMnKIFAnfRBIyvIuRc7I8=; b=OUZPm3gajy/lTUjPvs1IB3gA/nUmhpLUM/zG33xhwESVCaSvwsb2pGO00DpDv3RX93 5ZpeABKGhDO+zOkuc5lZyr7qjOh8W/BptzOlaCd62AaOS5TqLAqWZW7jfrZF8kDX7fnS PKIyFVWW6w6u3pzuvpCILxDyv2pLkoU4mzOefSaT+qsgRHzazE0xGNIyObn4Eczom99j AqvwNFdSoyND5jniEv1P03mFhlsRfc2QT4d3Xt57yMgB8YGW1JbN/JzD4pk+wpCU137r qdNKIO9Ri23IwLPBlwQdSDUMmn/dOZ1iOyN6V646uw34QxjLdZdi6eJIMf2eqBHE8o5+ e2mA== Received: by 10.204.156.69 with SMTP id v5mr71158bkw.133.1338499792784; Thu, 31 May 2012 14:29:52 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.171.138 with HTTP; Thu, 31 May 2012 14:29:22 -0700 (PDT) In-Reply-To: <4FC694C9.9040501@delphij.net> References: <4FC694C9.9040501@delphij.net> From: Chris Rees Date: Thu, 31 May 2012 22:29:22 +0100 X-Google-Sender-Auth: 4t87IvSi4TcjbCqfvB-PplkdDig Message-ID: To: d@delphij.net Content-Type: text/plain; charset=ISO-8859-1 Cc: 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: Thu, 31 May 2012 21:29:54 -0000 On 30 May 2012 22:44, Xin Li wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hi, > > Is there any rule of style for new code that ` or $() is preferred? > Seems that either no preference or $() is the rule, 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. Chris From owner-freebsd-rc@FreeBSD.ORG Fri Jun 1 01:50:59 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 E42461065673; Fri, 1 Jun 2012 01:50:59 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id E15A71A7DC9; Fri, 1 Jun 2012 01:49:54 +0000 (UTC) Message-ID: <4FC81FC2.1020307@FreeBSD.org> Date: Thu, 31 May 2012 18:49:54 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Chris Rees References: <4FC694C9.9040501@delphij.net> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@freebsd.org, d@delphij.net 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 01:51:00 -0000 On 5/31/2012 2:29 PM, Chris Rees wrote: > Seems that either no preference or $() is the rule, I not only wouldn't say that, I didn't when I responded previously. :) > 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. Valid point, except that he specified that he is writing an rc.d script (which makes sense considering the list ...). Doug -- This .signature sanitized for your protection 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/--