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 6C2F21386F9 for ; Mon, 28 Jan 2013 04:37:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0460A21C012; Mon, 28 Jan 2013 04:36:56 +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 E69FBE002A for ; Mon, 28 Jan 2013 04:36:54 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 02A9F33DA6C for ; Mon, 28 Jan 2013 04:36:54 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: gentoo-dev@lists.gentoo.org Subject: Re: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable= Date: Sun, 27 Jan 2013 23:37:06 -0500 User-Agent: KMail/1.13.7 (Linux/3.7.1; KDE/4.6.5; x86_64; ; ) References: <1359295221.2927.24.camel@belkin4> <201301271305.54346.vapier@gentoo.org> <1359310887.2927.39.camel@belkin4> In-Reply-To: <1359310887.2927.39.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 Content-Type: multipart/signed; boundary="nextPart1861644.7McY6fXlGU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201301272337.06614.vapier@gentoo.org> X-Archives-Salt: 53366a6e-8bd7-4954-b69b-5c36668bc6dd X-Archives-Hash: 5474c7d0ca617f0b0d22683e4f9d5cde --nextPart1861644.7McY6fXlGU Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 at > src_prepare (for example): > src_prepare() { > DOC_CONTENTS=3D"You must create a symlink rom /etc/splash/tuxonice > to the theme you want tuxonice to use, e.g.: \n > # ln -sfn /etc/splash/emergence /etc/splash/tuxonice \n" > ... >=20 > and I handle ${DOC_CONTENTS} with quotes, it will end writing that tabs > 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 sending= it=20 through `fmt`). if the caller gave you content to write, it should write i= t. =20 if the caller didn't want tabs, it shouldn't have used it in the first plac= e. =2Dmike --nextPart1861644.7McY6fXlGU Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJRBgByAAoJEEFjO5/oN/WBMDkP/09GbS4xOvlt+LYpPG9uJ0sk QfLsv3SIJDNBl2BJErImj9knky6kjh1r+XByNT6RLA6oBeWYoXRQtZaYp8sQf+dR qE0p9MGW6gebAfUrpxzw7H9kRdfhWSWKEtkdyq7Qbp+n4ObPVu5P0Mlcm8i9N1Gt t05ONpfFkTuWk5xzBOK3Y/9daPGcB1zf0f4dR0DGpH4CdCpz81TJ9aer/fyM6PMa JBFq37NPBva+4XCXfzpBLod/4N/CSUHwOjq0RMpB3R8Hm+P5VsKYL0pREr/RXKAA y8q549d/kLbf30pDMKvd9dnpd02pfTJq3ZZEPLgH4FYi4DgIH0MEFIm7HiDh2GCP wJB4SuIyuIfkDS7j9MuE2+uD9P5ETVymOCZG+/2OANp9mwh+U4YvOOtiEeUZYUAp 8zPZYJIVhneAUm3rhPxZB+3ZGKjEgrGMwg8TSGdMfGJxFeGuM/ia9jlQU+RbKgtC vWMBTRQGAkKUuJsHZ1IU2Fzmj8AbFUJ/OMkFdJl2zLu//Vwz24C7OREWXnITzjcv 9R/kt1QiSdo4mKwB5ZYEdLOmmBaXP+R7nyp4VCDhgpFLTGWGGhtGw2cTpCNx4hHm FniCftZv5NbmpdPX6KE+BNfsjD/icNd7YaCNqpXWO5YdWlGMngRjUdMSoAf5uB2F wrN/vdkH8YYaXsN7Wq8X =Q5P0 -----END PGP SIGNATURE----- --nextPart1861644.7McY6fXlGU--