Michał Górny <[email protected]> wrote:
>>      if [[ -n "${DISABLE_AUTOFORMATTING}" ]]; then
>>              echo "${DOC_CONTENTS}" > "${T}"/README.gentoo || die
>>      else
>>              echo -e ${DOC_CONTENTS} | fold -s -w 70 \
>>              | sed 's/[[:space:]]*$//' > "${T}"/README.gentoo

(omitted some lines/space for better context):

> Maybe I'm missing something but is there any reason not to quote
> "${DOC_CONTENTS}" instead of working around the results of not quoting
> it?

With DISABLE_AUTOFORMATTING=true, it is correctly quoted,
and there is no "workaround".
Without DISABLE_AUTOFORMATTING, the autowrapping (and ignoring
of "manual" format information by not quoting) is obviously
intentional.
Maybe, it would be more natural to have the opposite as the default,
but this is how the eclass works from its very beginning.


Reply via email to