1 |
>>>>> On Sat, 19 Dec 2015, Michał Górny wrote: |
2 |
|
3 |
>> + set -f # disable filename expansion in echo arguments |
4 |
>> echo -e ${DOC_CONTENTS} | fold -s -w 70 \ |
5 |
>> | sed 's/[[:space:]]*$//' > "${T}"/README.gentoo |
6 |
|
7 |
> Maybe I'm missing something but is there any reason not to quote |
8 |
> "${DOC_CONTENTS}" instead of working around the results of not |
9 |
> quoting it? |
10 |
|
11 |
IIUC the intention of not quoting it is to normalise whitespace, |
12 |
especially embedded newlines. Unfortunately, I don't see a good way to |
13 |
do this differently. Adding another processing step after echo -e is |
14 |
too late, because newlines expanded from \n must be kept. |
15 |
|
16 |
Ulrich |