From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 14DA3138717 for ; Mon, 28 Jan 2013 19:30:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5ED6521C033; Mon, 28 Jan 2013 19:30:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57C0721C00A for ; Mon, 28 Jan 2013 19:30:17 +0000 (UTC) Received: from [192.168.1.33] (210.Red-2-137-15.dynamicIP.rima-tde.net [2.137.15.210]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pacho) by smtp.gentoo.org (Postfix) with ESMTPSA id F31D933DA80 for ; Mon, 28 Jan 2013 19:30:14 +0000 (UTC) Subject: Re: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable= From: Pacho Ramos To: gentoo-dev@lists.gentoo.org In-Reply-To: References: <1359295221.2927.24.camel@belkin4> <201301271305.54346.vapier@gentoo.org> <1359310887.2927.39.camel@belkin4> <201301272337.06614.vapier@gentoo.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-kxgq21hsQe0053/uySXL" Date: Mon, 28 Jan 2013 20:30:06 +0100 Message-ID: <1359401406.2927.49.camel@belkin4> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 X-Archives-Salt: afcaf7ee-3d67-4c0e-83b1-7f051f946ed2 X-Archives-Hash: 4a4786d8e80f7ac1206cc6cbf47504f4 --=-kxgq21hsQe0053/uySXL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El lun, 28-01-2013 a las 14:37 +0800, Ben de Groot escribi=C3=B3: > On 28 January 2013 12:37, Mike Frysinger wrote: > > On Sunday 27 January 2013 13:21:27 Pacho Ramos wrote: > >> The problem is that it doesn't work so well. If I have the following a= t > >> src_prepare (for example): > >> src_prepare() { > >> DOC_CONTENTS=3D"You must create a symlink rom /etc/splash/tuxo= nice > >> to the theme you want tuxonice to use, e.g.: \n > >> # ln -sfn /etc/splash/emergence /etc/splash/tuxo= nice \n" > >> ... > >> > >> and I handle ${DOC_CONTENTS} with quotes, it will end writing that tab= s > >> also in generated file as the contents of the variable will be put > >> as-is. On the other hand, if I don't put it between quotes > > > > forcibly normalizing whitespace for all callers is wrong imo (as is sen= ding it > > through `fmt`). if the caller gave you content to write, it should wri= te it. > > if the caller didn't want tabs, it shouldn't have used it in the first = place. > > -mike >=20 > I've started using this eclass, but with README files, not the variable, > because this is currently the only way I can make sure it honours my > formatting. >=20 Couldn't it be covered if "echo -e" was used (even with fmt) and you, then, control formatting with some of the sequences it allows (they are shown in its man page)? --=-kxgq21hsQe0053/uySXL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEABECAAYFAlEG0b4ACgkQCaWpQKGI+9R5ywCfScAjT2W2IhP9ThEBimcR9bZS 9XgAnR6AuoKRFsv28tLRe1oTAP4VXluC =WCdz -----END PGP SIGNATURE----- --=-kxgq21hsQe0053/uySXL--