[U-Boot] [PATCH 2/6] moveconfig: Allow reading the defconfig list from stdin

Simon Glass
2017-05-17T01:38:28Z

Hi Tom,

On 15 May 2017 at 06:24, Tom Rini <trini@konsulko.com> wrote:
> On Mon, May 15, 2017 at 05:47:32AM -0600, Simon Glass wrote:
>
>> Support passes in a defconfig filename of '-' to read the list from stdin
>> instead of from a file.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>
> This seems like a lot more work than just doing -d <(printf "a\nb\n").
> I'm not nak'ing this, mind you, I just don't quite get the use case.

That is certainly equivalent, but I find myself doing:

git status | awk '{print $1}' | something else | ...

and then when I get that right, I just add moveconfig to the end. I
suppose I could just as easily do:

moveconfig ... $(!!)

but I quite like the pipeline approach :-)

Regards,
Simon