Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-dev@l.g.o, Pacho Ramos <pacho@g.o>
Subject: Re: [gentoo-dev] [PATCH] readme.gentoo-r1.eclass: Do not inherit eutils.
Date: Sat, 19 Dec 2015 23:56:57
Message-Id: 22133.61111.242376.862933@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] [PATCH] readme.gentoo-r1.eclass: Do not inherit eutils. by "Michał Górny"
1 >>>>> On Sat, 19 Dec 2015, Michał Górny wrote:
2
3 >> set -f
4 >> echo -e ${DOC_CONTENTS} | ...
5 >>
6 >> versus:
7 >>
8 >> read -d '' -r -a DOC_CONTENTS <<<"${DOC_CONTENTS}"
9 >> echo -e "${DOC_CONTENTS[*]}" | ...
10 >>
11 >> The second one is (IMHO) harder to understand, less efficient, and
12 >> relies on undocumented behaviour.
13
14 > On WHAT?!
15
16 Documentation of the read command doesn't specify behaviour for an
17 empty argument of the -d option:
18
19 `-d DELIM'
20 The first character of DELIM is used to terminate the input
21 line, rather than newline.
22
23 Ulrich

Replies