On Mon, Feb 19, 2018 at 9:44 AM, Linus Torvalds
> I do like your "success"/"stdout" more than "shell"/"shell-stdout",
> because with that naming I don't get the feeling that one should
> subsume the other.
Hmm. Thinking about it some more, I really would prefer just "$(shell
But it would be nice if perhaps the error handling would match the
I'm wondering if this might tie into the whole quoting discussion in
the other thread.
Because the rule could be:
(a) unquoted $(shell ) is a bool, and failing is ok (and turns into
y/n depending on whether successful or failing)
default $(shell $CC --version | grep -q gcc)
(b) but with quoting, $(shell ) is a string, and failing is an error
default "$(shell-stdout $srctree/scripts/gcc-version.sh $CC
| sed 's/^0*//')" if CC_IS_GCC
would need those quotes, and if the shell-script returns a failure,
Which is actually what we want there.
Hmm? Is that too nasty?