Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
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 18:05:53
Message-Id: 201301271305.54346.vapier@gentoo.org
In Reply to: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable= by Pacho Ramos
1 On Sunday 27 January 2013 12:47:28 Pacho Ramos wrote:
2 > El dom, 27-01-2013 a las 15:00 +0100, Pacho Ramos escribió:
3 > > Currently, when people uses DOC_CONTENTS variable to place their desired
4 > > messages, they are automatically reformatted by "fmt" to get proper
5 > > messages (for example, splitting long lines).
6 > >
7 > > But, in some cases, may be useful to disable this behavior and respect
8 > > strictly how DOC_CONTENTS was formatted, for example in that kind of
9 > > messages telling people to run a command and, then, requiring a new line
10 > > to be used. This can also be useful to append extra information to
11 > > DOC_CONTENTS when, for example, additional info is needed when enabling
12 > > a USE flag.
13 >
14 > Well, after reading man echo I see all this is not needed, I simply need
15 > to use echo -e to get it understand "\n" to create new lines
16
17 printf '%b' "${foo}"
18 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies