From owner-freebsd-rc@FreeBSD.ORG Mon Feb 6 22:30:08 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 29DC9106564A; Mon, 6 Feb 2012 22:30:08 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper-int.allbsd.org [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 77DC78FC0C; Mon, 6 Feb 2012 22:30:07 +0000 (UTC) Received: from alph.allbsd.org (p1012-ipbf2105funabasi.chiba.ocn.ne.jp [114.148.160.12]) (authenticated bits=128) by mail.allbsd.org (8.14.4/8.14.4) with ESMTP id q16MTfn6049185; Tue, 7 Feb 2012 07:29:51 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.14.4/8.14.4) with ESMTP id q16MTfnu009503; Tue, 7 Feb 2012 07:29:41 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Tue, 07 Feb 2012 07:29:25 +0900 (JST) Message-Id: <20120207.072925.1861639312875773760.hrs@allbsd.org> To: dougb@FreeBSD.org From: Hiroki Sato In-Reply-To: <4F304F54.4020802@FreeBSD.org> References: <4F2F442F.3030509@erdgeist.org> <20120207.064701.1809281571072237708.hrs@allbsd.org> <4F304F54.4020802@FreeBSD.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.4 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Tue_Feb__7_07_29_25_2012_068)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3 (mail.allbsd.org [133.31.130.32]); Tue, 07 Feb 2012 07:29:57 +0900 (JST) X-Spam-Status: No, score=-100.8 required=13.0 tests=BAYES_00, CONTENT_TYPE_PRESENT,RCVD_IN_PBL,RCVD_IN_RP_RNBL,SPF_SOFTFAIL, USER_IN_WHITELIST autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gatekeeper.allbsd.org Cc: freebsd-rc@FreeBSD.org Subject: Re: Proposal ipv6_addrs_common 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, 06 Feb 2012 22:30:08 -0000 ----Security_Multipart(Tue_Feb__7_07_29_25_2012_068)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Doug Barton wrote in <4F304F54.4020802@FreeBSD.org>: do> On 02/06/2012 13:47, Hiroki Sato wrote: do> > It actually depends on the newline do> do> That's way too fragile, as users are likely to put them all in one line do> since shell syntax doesn't differentiate (assuming non-wacky values of IFS). I don't think so. In this syntax a newline character is a separator distinguished from normal white spaces by read statement. do> > echo "$foo" | while read L; do echo $L; done do> do> Yeah, don't do that. Aside from the useless fork that you'll cause, you do> can just as easily write: do> do> for L in $foo; do do> do> (Note that $foo is *not* quoted there ...) No, my intention is grouping multiple words by a newline. By using "for", lines cannot be separated from each other in the following case: foo=" foo foo2 bar bar2 baz " -- Hiroki ----Security_Multipart(Tue_Feb__7_07_29_25_2012_068)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAk8wVEUACgkQTyzT2CeTzy279QCgjtlDs5xDJIYsx5SXFBbw6e7c G9kAnjG80yxjGmc5u8TxBsABD9Uoe/hn =wg/A -----END PGP SIGNATURE----- ----Security_Multipart(Tue_Feb__7_07_29_25_2012_068)----