public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ulrich Mueller <ulm@gentoo.org>
To: "Michał Górny" <mgorny@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org, Pacho Ramos <pacho@gentoo.org>
Subject: Re: [gentoo-dev] [PATCH] readme.gentoo-r1.eclass: Do not inherit eutils.
Date: Sun, 20 Dec 2015 00:56:39 +0100	[thread overview]
Message-ID: <22133.61111.242376.862933@a1i15.kph.uni-mainz.de> (raw)
In-Reply-To: <20151219235625.610c9eef.mgorny@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

>>>>> On Sat, 19 Dec 2015, Michał Górny wrote:

>> set -f
>> echo -e ${DOC_CONTENTS} | ...
>> 
>> versus:
>> 
>> read -d '' -r -a DOC_CONTENTS <<<"${DOC_CONTENTS}"
>> echo -e "${DOC_CONTENTS[*]}" | ...
>> 
>> The second one is (IMHO) harder to understand, less efficient, and
>> relies on undocumented behaviour.

> On WHAT?!

Documentation of the read command doesn't specify behaviour for an
empty argument of the -d option:

    `-d DELIM'
          The first character of DELIM is used to terminate the input
          line, rather than newline.

Ulrich

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

  parent reply	other threads:[~2015-12-19 23:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-19 17:18 [gentoo-dev] [PATCH] readme.gentoo-r1.eclass: Do not inherit eutils Ulrich Mueller
2015-12-19 17:32 ` Michał Górny
2015-12-19 18:05   ` [gentoo-dev] " Martin Vaeth
2015-12-19 18:24   ` [gentoo-dev] " Ulrich Mueller
2015-12-19 18:34     ` Michał Górny
2015-12-19 20:17       ` Ulrich Mueller
2015-12-19 20:52         ` Michał Górny
2015-12-19 22:51           ` Ulrich Mueller
2015-12-19 22:56             ` Michał Górny
2015-12-19 23:47               ` [gentoo-dev] " Jonathan Callen
2015-12-20 10:17                 ` Andrew Savchenko
2015-12-19 23:56               ` Ulrich Mueller [this message]
2015-12-20  9:16                 ` [gentoo-dev] " Michał Górny
2015-12-20 10:31                   ` Ulrich Mueller
2015-12-20 10:56                     ` Michał Górny
2015-12-20 12:13                       ` Ulrich Mueller
2015-12-21  7:38                         ` Pacho Ramos
2015-12-21  7:55                           ` Ulrich Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22133.61111.242376.862933@a1i15.kph.uni-mainz.de \
    --to=ulm@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=mgorny@gentoo.org \
    --cc=pacho@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox