Date: Sun, 07 Nov 2010 02:08:51 +0100 From: Cyrille Lefevre <cyrille.lefevre-lists@laposte.net> To: Devin Teske <dteske@vicor.com> Cc: freebsd-rc@freebsd.org Subject: Re: sysrc(8) -- a sysctl(8)-like utility for managing rc.conf(5) Message-ID: <4CD5FC23.4060605@laposte.net> In-Reply-To: <B433777B-5DE2-4639-8882-98A9425D0022@vicor.com> 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> <D763F474-8F19-4C65-B23F-78C9B137A8FE@vicor.com> <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> <B433777B-5DE2-4639-8882-98A9425D0022@vicor.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CD5FC23.4060605>