From owner-freebsd-rc@FreeBSD.ORG Sun Nov 7 01:06:27 2010 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 3E05B1065673 for ; Sun, 7 Nov 2010 01:06:27 +0000 (UTC) (envelope-from cyrille.lefevre-lists@laposte.net) Received: from out3.laposte.net (out4.laposte.net [193.251.214.121]) by mx1.freebsd.org (Postfix) with ESMTP id C587D8FC0C for ; Sun, 7 Nov 2010 01:06:26 +0000 (UTC) Received: from meplus.info (localhost [127.0.0.1]) by mwinf8307.laposte.net (SMTP Server) with ESMTP id 6CBAD700009A; Sun, 7 Nov 2010 02:06:25 +0100 (CET) Received: from [192.168.1.133] (162.64.99-84.rev.gaoland.net [84.99.64.162]) by mwinf8307.laposte.net (SMTP Server) with ESMTP id 156EC7000096; Sun, 7 Nov 2010 02:06:23 +0100 (CET) X-ME-UUID: 20101107010624878.156EC7000096@mwinf8307.laposte.net Message-ID: <4CD5FC23.4060605@laposte.net> Date: Sun, 07 Nov 2010 02:08:51 +0100 From: Cyrille Lefevre Organization: ACME User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Devin Teske References: <1286925182.32724.18.camel@localhost.localdomain> <1286996709.32724.60.camel@localhost.localdomain> <1287448781.5713.3.camel@localhost.localdomain> <1287510629.25599.2.camel@localhost.localdomain> <1288746388.7362.4.camel@localhost.localdomain> <17B64023-A64A-40DA-9CBC-A601710AB5BB@vicor.com> <1288919368.7362.35.camel@localhost.localdomain> <4CD3731C.6020501@laposte.net> <1288978858.7362.154.camel@localhost.localdomain> <4CD4B040.1000804@laposte.net> <1289013402.7362.282.camel@localhost.localdomain> <4CD56812.8080502@laposte.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-me-spamlevel: not-spam X-me-spamrating: 31.600000 X-me-spamcause: OK, (-210)(0000)gggruggvucftvghtrhhoucdtuddrfedtiedrtdelucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddutddmneesvcftvggtihhpihgvnhhtshculddquddttddmneculddquddttddmnehfrhgvvggsshguvdigucdlqddvtddm Cc: freebsd-rc@freebsd.org Subject: Re: sysrc(8) -- a sysctl(8)-like utility for managing rc.conf(5) 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: Sun, 07 Nov 2010 01:06:27 -0000 Le 06/11/2010 19:14, Devin Teske a =E9crit : > On Nov 6, 2010, at 7:37 AM, Cyrille Lefevre wrote: >> Le 06/11/2010 04:16, Devin Teske a =E9crit : > So, there should be no concern about expanding escape-sequences unless > all of the following is true: >=20 > a. You're using sh, bash, or something similar (not csh or tcsh) well, pdksh :-) freebsd builtin echo doesn't expand \ sequences, sorry. >> this imply performance >> degradation... alternatively, you may want to use the -E option to ech= o >> if supported (freebsd seems to support it, so, use it). >> same remark about read, always use the -r option... >=20 > I think you meant `-e', I'm not familiar with `-E', is that the opposit= e > of `-e' (as in, "don't expand escape-sequences")? well, -E is suppported by pdksh and bash but not by ksh88 nor ksh93. so, consider it as a bashisime. also, I've the habit to alias echo to echo -E under bash to get the bsd behaviour... so, don't care, but rememer you that echo may have bad effects in portable programs. > Use of `-r' depends. I find that it's not enough to say "always use it"= =2E > 50% of the cases I've come across should not use it while the other hal= f > should. It really depends on whether you want to pick up the contents o= f > the next line should there be a trailing back-slash at the end of the > first line read. usual users don't even known the -r option to read and are wrong about that. it's just a remember you :-) forgot my geek code :-) http://www.ebb.org/ungeek/ -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GAT/CS/E/IT/MU/TW@ d-()>++ s:+>: a+@$ C++(+++)>++++ UABCHILOS*++++(+++)$ P-(+)>-- L->+++$ E++(---)@ W++>- N+(+++)@ o? K w !O M- V- PS(+) PE-(--)> Y+ PGP-> t+ 5? X+ R* tv++ b- DI-->+++ D+ G(-) e-(+++) h----(++)> y+++(?) ------END GEEK CODE BLOCK------ http://www.geekcode.com/geek.html see you... Regards, Cyrille Lefevre --=20 mailto:Cyrille.Lefevre-lists@laposte.net